mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-22 00:07:46 +00:00
change(lmlayer): Fixes a few of the 'draft' tweaks to logging from previous commits of this PR
This commit is contained in:
parent
689a5c5502
commit
c822e61fc4
2 changed files with 4 additions and 4 deletions
|
|
@ -151,7 +151,6 @@ namespace com.keyman.text.prediction {
|
|||
}
|
||||
else if (payload.message === 'ready') {
|
||||
this._declareLMLayerReady(event.data.configuration);
|
||||
console.log("LMLayer ready!");
|
||||
} else if (payload.message === 'suggestions') {
|
||||
this._predictPromises.keep(payload.token, payload.suggestions);
|
||||
} else if (payload.message === 'currentword') {
|
||||
|
|
|
|||
|
|
@ -131,9 +131,10 @@ class LMLayerWorker {
|
|||
if(im.message == 'load') {
|
||||
let data = im as LoadMessage;
|
||||
if(data.model == this._currentModelSource) {
|
||||
// if(console) {
|
||||
// console.warn("Duplicate model load message detected - squashing!");
|
||||
// }
|
||||
// Some JS implementations don't allow web workers access to the console.
|
||||
if(console) {
|
||||
console.warn("Duplicate model load message detected - squashing!");
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
this._currentModelSource = data.model;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue