From 1aa17874a635b8b67e7696780fa6baf4144be2db Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 3 Jul 2018 11:37:39 +0200 Subject: [PATCH] MOBILE-2443 ios: Fix blank screen in iOS 8 and 9 --- src/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/index.html b/src/index.html index 27a910284..afe3bcca7 100644 --- a/src/index.html +++ b/src/index.html @@ -14,20 +14,22 @@ (function () { 'use strict'; + var EvTarget = EventTarget || Element; // EventTarget doesn't exist in iOS 8 and 9. + window.addEventListener = function () { - EventTarget.prototype.addEventListener.apply(this, arguments); + EvTarget.prototype.addEventListener.apply(this, arguments); }; window.removeEventListener = function () { - EventTarget.prototype.removeEventListener.apply(this, arguments); + EvTarget.prototype.removeEventListener.apply(this, arguments); }; document.addEventListener = function () { - EventTarget.prototype.addEventListener.apply(this, arguments); + EvTarget.prototype.addEventListener.apply(this, arguments); }; document.removeEventListener = function () { - EventTarget.prototype.removeEventListener.apply(this, arguments); + EvTarget.prototype.removeEventListener.apply(this, arguments); }; })();