From 068d36ffa7cef13e63b120977028b7b14afb8e44 Mon Sep 17 00:00:00 2001 From: Unboring SL Date: Tue, 13 Feb 2018 09:44:06 +0100 Subject: [PATCH] Fix for iOS devices --- polyfill/XRPolyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyfill/XRPolyfill.js b/polyfill/XRPolyfill.js index c533d3f..b66b804 100644 --- a/polyfill/XRPolyfill.js +++ b/polyfill/XRPolyfill.js @@ -94,7 +94,7 @@ class XRPolyfill extends EventHandlerBase { } if(document.readyState !== 'loading') { - prependElements(); + prependElements.bind(this); } else { document.addEventListener('DOMContentLoaded', prependElements.bind(this)); }