Differences From Artifact [b352512c63]:
- File gc_core/js/helpers.js — part of check-in [6d2246be0e] at 2017-09-27 09:10:44 on branch trunk — [fx] WebExt: adaptation to Chrome (write and read gc options) (user: olr, size: 2931) [annotate] [blame] [check-ins using] [more...]
- File graphspell-js/helpers.js — part of check-in [bdfc6fd5e9] at 2017-12-24 18:58:54 on branch graphspell — [build][js] move files from gc_core to graphspell (user: olr, size: 2931) [annotate] [blame] [check-ins using]
To Artifact [d6421f5497]:
- File graphspell-js/helpers.js — part of check-in [186604b4a0] at 2017-12-25 08:56:38 on branch graphspell — [graphspell][js][helpers] echo for JS probably obsolete now (at last!) (user: olr, size: 3101) [annotate] [blame] [check-ins using] [more...]
︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | + + | // In Firefox, there is no console.log in PromiseWorker, but there is worker.log. // In Thunderbird, you can’t access to console directly. So it’s required to pass a log function. let funcOutput = null; var helpers = { setLogOutput: function (func) { // probably obsolete now, as console.log seems to work everywhere (at last!) funcOutput = func; }, echo: function (obj) { // probably obsolete now, as console.log seems to work everywhere (at last!) if (funcOutput !== null) { funcOutput(obj); } else { console.log(obj); } return true; }, |
︙ |