Merge pull request #1370 from albertgasset/MOBILE-2431
MOBILE-2431 core: Workaround for Cordova/Angular conflictmain
commit
9c90ea051c
|
@ -8,6 +8,30 @@
|
|||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
|
||||
<!-- Workaround for Cordova/Angular conflict:
|
||||
http://weblogs.thinktecture.com/thomas/2017/02/cordova-vs-zonejs-or-why-is-angulars-document-event-listener-not-in-a-zone.html-->
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
window.addEventListener = function () {
|
||||
EventTarget.prototype.addEventListener.apply(this, arguments);
|
||||
};
|
||||
|
||||
window.removeEventListener = function () {
|
||||
EventTarget.prototype.removeEventListener.apply(this, arguments);
|
||||
};
|
||||
|
||||
document.addEventListener = function () {
|
||||
EventTarget.prototype.addEventListener.apply(this, arguments);
|
||||
};
|
||||
|
||||
document.removeEventListener = function () {
|
||||
EventTarget.prototype.removeEventListener.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
</script>
|
||||
|
||||
<script src="assets/ydn.db-dev.js"></script>
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
|
||||
|
|
Loading…
Reference in New Issue