change(lmlayer): Fixes a few of the 'draft' tweaks to logging from previous commits of this PR

This commit is contained in:
jahorton 2019-11-21 08:58:43 +07:00
parent 689a5c5502
commit c822e61fc4
2 changed files with 4 additions and 4 deletions

View file

@ -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') {

View file

@ -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;