mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 01:45:32 +00:00
fix(web): console obj validity check
This commit is contained in:
parent
c2b011dc2f
commit
a640fa76e2
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ class LMLayerWorker {
|
|||
let data = im as LoadMessage;
|
||||
if(data.model == this._currentModelSource) {
|
||||
// Some JS implementations don't allow web workers access to the console.
|
||||
if(console) {
|
||||
if(typeof console !== 'undefined') {
|
||||
console.warn("Duplicate model load message detected - squashing!");
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue