Merge pull request #1370 from albertgasset/MOBILE-2431

MOBILE-2431 core: Workaround for Cordova/Angular conflict
main
Juan Leyva 2018-06-22 19:55:27 +02:00 committed by GitHub
commit 9c90ea051c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -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">