Differences From Artifact [dded3e5e90]:
- File graphspell-js/helpers.js — part of check-in [1a3885282a] at 2018-08-07 08:27:20 on branch trunk — [graphspell] get rid of console.log() substitutes, assuming now default console is available from everywhere (user: olr, size: 1752) [annotate] [blame] [check-ins using]
To Artifact [6ccb02c60d]:
- File graphspell-js/helpers.js — part of check-in [31905c2c2f] at 2018-08-07 09:03:22 on branch trunk — [graphspell][js] console.log() for debugging (user: olr, size: 1797) [annotate] [blame] [check-ins using]
| ︙ | |||
18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + |
},
loadFile: function (spf) {
// load ressources in workers (suggested by Mozilla extensions reviewers)
// for more options have a look here: https://gist.github.com/Noitidart/ec1e6b9a593ec7e3efed
// if not in workers, use sdk/data.load() instead
try {
console.log("loadFile: " + spf);
let xRequest;
xRequest = new XMLHttpRequest();
xRequest.open('GET', spf, false); // 3rd arg is false for synchronous, sync is acceptable in workers
xRequest.overrideMimeType('text/json');
xRequest.send();
return xRequest.responseText;
}
|
| ︙ |