forked from CIT/Vmeda.Online
		
	MOBILE-2431 core: Workaround for Cordova/Angular conflict
This commit is contained in:
		
							parent
							
								
									2e4af05991
								
							
						
					
					
						commit
						ab36ef3f99
					
				| @ -8,6 +8,30 @@ | |||||||
|   <meta name="format-detection" content="telephone=no"> |   <meta name="format-detection" content="telephone=no"> | ||||||
|   <meta name="msapplication-tap-highlight" content="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> |   <script src="assets/ydn.db-dev.js"></script> | ||||||
| 
 | 
 | ||||||
|   <link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico"> |   <link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico"> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user