diff --git a/src/wrappers.js b/src/wrappers.js index aa6a58d..c9db60c 100644 --- a/src/wrappers.js +++ b/src/wrappers.js @@ -18,6 +18,13 @@ window.ShadowDOMPolyfill = {}; return false; } + // Firefox OS Apps do not allow eval. This feature detection is very hacky + // but even if some other platform adds support for this function this code + // will continue to work. + if (navigator.getDeviceStorage) { + return false; + } + try { var f = new Function('return true;'); return f();