Notify in the browser console if there is an error in the conf.json file

stable
Alejandro Alonso 2016-03-31 09:14:09 +02:00
parent 64d9705c5b
commit 78b922a847
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ promise = $.getJSON "/conf.json"
promise.done (data) -> promise.done (data) ->
window.taigaConfig = _.assign({}, window.taigaConfig, data) window.taigaConfig = _.assign({}, window.taigaConfig, data)
promise.fail () ->
console.error "Your conf.json file is not a valid json file, please review it."
promise.always -> promise.always ->
if window.taigaConfig.contribPlugins.length > 0 if window.taigaConfig.contribPlugins.length > 0
loadPlugins(window.taigaConfig.contribPlugins).then () -> loadPlugins(window.taigaConfig.contribPlugins).then () ->