diff --git a/web/compatibility.js b/web/compatibility.js index bf06168da..4f29c3ff4 100644 --- a/web/compatibility.js +++ b/web/compatibility.js @@ -100,7 +100,7 @@ // and thus the native version is not sufficient Object.defineProperty(new Image(), 'id', { value: 'test' }); // ... another test for android gb browser for non-DOM objects - function Test() {} + var Test = function Test() {}; Test.prototype = { get id() { } }; Object.defineProperty(new Test(), 'id', { value: '', configurable: true, enumerable: true, writable: false });