Merge pull request #940 from taigaio/Notify-in-the-browser-console-if-there-is-an-error-in-the-conf.json-file
Notify in the browser console if there is an error in the conf.json filestable
commit
8464bc0d83
|
@ -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