[DE] debug

This commit is contained in:
Maxim Kadushkin 2019-02-04 15:49:41 +03:00
parent 74aa97c8f6
commit 477f3f58d8
2 changed files with 16 additions and 1 deletions

View file

@ -169,7 +169,10 @@ Common.Locale = new(function() {
}).then(function(json) {
if ( !!json ) l10n = json;
}).catch(function(e) {
console.log('fetch error: ' + e);
if ( e.message == 'loaded' ) {
} else
console.log('fetch error: ' + e);
});
};

View file

@ -2083,6 +2083,18 @@ define([
}
});
/**/
Promise.all(pluginsData.map(url => {
return fetch(url)
.then(response => response.json());
// .then(json => json);
})).then( values => {
console.log('plugins: ' + values);
}).catch(e => {
console.log('error: ' + e.message);
});
/**/
if (arr.length>0) {
var autostart = plugins.autostart || plugins.autoStartGuid;
if (typeof (autostart) == 'string')