fix(web): console obj validity check

This commit is contained in:
jahorton 2019-12-02 07:57:13 +07:00
parent c2b011dc2f
commit a640fa76e2

View file

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