diff --git a/common/predictive-text/index.ts b/common/predictive-text/index.ts index 9b11d1a4d2..921fc7e5a1 100644 --- a/common/predictive-text/index.ts +++ b/common/predictive-text/index.ts @@ -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') { diff --git a/common/predictive-text/worker/index.ts b/common/predictive-text/worker/index.ts index f64e10e875..212bab7a01 100644 --- a/common/predictive-text/worker/index.ts +++ b/common/predictive-text/worker/index.ts @@ -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;