fix: injected console cannot effect on iOS
This commit is contained in:
		| @@ -15178,7 +15178,9 @@ var doric = (function (exports) { | |||||||
| 	    }; | 	    }; | ||||||
| 	} | 	} | ||||||
| 	var global$2 = Function('return this')(); | 	var global$2 = Function('return this')(); | ||||||
| 	if (!Reflect.has(global$2, "console")) { | 	if (Environment.platform === 'Android' | ||||||
|  | 	    || Environment.platform === 'iOS' | ||||||
|  | 	    || Environment.platform === 'Qt') { | ||||||
| 	    Reflect.set(global$2, "console", { | 	    Reflect.set(global$2, "console", { | ||||||
| 	        warn: logw, | 	        warn: logw, | ||||||
| 	        error: loge, | 	        error: loge, | ||||||
|   | |||||||
| @@ -1478,7 +1478,9 @@ var doric = (function (exports) { | |||||||
|         }; |         }; | ||||||
|     } |     } | ||||||
|     const global$1 = Function('return this')(); |     const global$1 = Function('return this')(); | ||||||
|     if (!Reflect.has(global$1, "console")) { |     if (Environment.platform === 'Android' | ||||||
|  |         || Environment.platform === 'iOS' | ||||||
|  |         || Environment.platform === 'Qt') { | ||||||
|         Reflect.set(global$1, "console", { |         Reflect.set(global$1, "console", { | ||||||
|             warn: logw, |             warn: logw, | ||||||
|             error: loge, |             error: loge, | ||||||
|   | |||||||
| @@ -1487,7 +1487,9 @@ function jsObtainEntry(contextId) { | |||||||
|     }; |     }; | ||||||
| } | } | ||||||
| const global$2 = Function('return this')(); | const global$2 = Function('return this')(); | ||||||
| if (!Reflect.has(global$2, "console")) { | if (Environment.platform === 'Android' | ||||||
|  |     || Environment.platform === 'iOS' | ||||||
|  |     || Environment.platform === 'Qt') { | ||||||
|     Reflect.set(global$2, "console", { |     Reflect.set(global$2, "console", { | ||||||
|         warn: logw, |         warn: logw, | ||||||
|         error: loge, |         error: loge, | ||||||
|   | |||||||
| @@ -276,7 +276,9 @@ export function jsObtainEntry(contextId) { | |||||||
|     }; |     }; | ||||||
| } | } | ||||||
| const global = Function('return this')(); | const global = Function('return this')(); | ||||||
| if (!Reflect.has(global, "console")) { | if (Environment.platform === 'Android' | ||||||
|  |     || Environment.platform === 'iOS' | ||||||
|  |     || Environment.platform === 'Qt') { | ||||||
|     Reflect.set(global, "console", { |     Reflect.set(global, "console", { | ||||||
|         warn: logw, |         warn: logw, | ||||||
|         error: loge, |         error: loge, | ||||||
|   | |||||||
| @@ -295,7 +295,9 @@ export function jsObtainEntry(contextId: string) { | |||||||
| } | } | ||||||
|  |  | ||||||
| const global = Function('return this')() | const global = Function('return this')() | ||||||
| if (!Reflect.has(global, "console")) { | if (Environment.platform === 'Android' | ||||||
|  |     || Environment.platform === 'iOS' | ||||||
|  |     || Environment.platform === 'Qt') { | ||||||
|     Reflect.set(global, "console", { |     Reflect.set(global, "console", { | ||||||
|         warn: logw, |         warn: logw, | ||||||
|         error: loge, |         error: loge, | ||||||
|   | |||||||
| @@ -334,7 +334,9 @@ export function jsObtainEntry(contextId: string) { | |||||||
| } | } | ||||||
|  |  | ||||||
| const global = Function('return this')() | const global = Function('return this')() | ||||||
| if (!Reflect.has(global, "console")) { | if (Environment.platform === 'Android' | ||||||
|  |     || Environment.platform === 'iOS' | ||||||
|  |     || Environment.platform === 'Qt') { | ||||||
|     Reflect.set(global, "console", { |     Reflect.set(global, "console", { | ||||||
|         warn: logw, |         warn: logw, | ||||||
|         error: loge, |         error: loge, | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								doric-web/dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								doric-web/dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -1480,7 +1480,9 @@ var doric = (function (exports) { | |||||||
|         }; |         }; | ||||||
|     } |     } | ||||||
|     const global$1 = Function('return this')(); |     const global$1 = Function('return this')(); | ||||||
|     if (!Reflect.has(global$1, "console")) { |     if (Environment.platform === 'Android' | ||||||
|  |         || Environment.platform === 'iOS' | ||||||
|  |         || Environment.platform === 'Qt') { | ||||||
|         Reflect.set(global$1, "console", { |         Reflect.set(global$1, "console", { | ||||||
|             warn: logw, |             warn: logw, | ||||||
|             error: loge, |             error: loge, | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								doric-web/dist/index.js.map
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								doric-web/dist/index.js.map
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user