Notify in the browser console if there is an error in the conf.json file
parent
64d9705c5b
commit
78b922a847
|
@ -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 () ->
|
||||||
|
|
Loading…
Reference in New Issue