MOBILE-2431 core: Workaround for Cordova/Angular conflict

main
Albert Gasset 2018-06-22 16:09:52 +02:00
parent 2e4af05991
commit ab36ef3f99
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">