Overview
Comment: | [graphspell][js][helpers] echo for JS probably obsolete now (at last!) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | graphspell |
Files: | files | file ages | folders |
SHA3-256: |
186604b4a0b9da9fee2fc509cb1177c9 |
User & Date: | olr on 2017-12-25 08:56:38 |
Other Links: | branch diff | manifest | tags |
Context
2017-12-25
| ||
13:19 | [build] merge graphspell: graphspell as independant package check-in: 37ee1a1b0d user: olr tags: trunk, build | |
08:56 | [graphspell][js][helpers] echo for JS probably obsolete now (at last!) Closed-Leaf check-in: 186604b4a0 user: olr tags: graphspell | |
08:52 | [build][tb] fix imports for Thunderbird check-in: 5822c38ee9 user: olr tags: build, tb, graphspell | |
Changes
Modified graphspell-js/helpers.js from [b352512c63] to [d6421f5497].
︙ | |||
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; }, |
︙ |