From 360c6f5f1c8f3910c70f57c551c6f987a2cc832c Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Fri, 3 Jan 2020 20:35:11 +0800 Subject: [PATCH] fix(web-view): remove Object.assign (https://ask.dcloud.net.cn/question/86172) --- dist/uni.webview.1.5.2.js | 2 +- src/core/runtime/web-view/index.js | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/dist/uni.webview.1.5.2.js b/dist/uni.webview.1.5.2.js index 8708892fd..1b2421df6 100644 --- a/dist/uni.webview.1.5.2.js +++ b/dist/uni.webview.1.5.2.js @@ -1 +1 @@ -!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).uni=n()}(this,function(){"use strict";function i(e,n){var i={options:{timestamp:+new Date},name:e,arg:n};if(window.__dcloud_weex_postMessage||window.__dcloud_weex_){if("postMessage"===e){var t={data:[n]};return window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessage(t):window.__dcloud_weex_.postMessage(JSON.stringify(t))}var o={type:c,args:{data:i,webviewIds:w}};window.__dcloud_weex_postMessage?window.__dcloud_weex_postMessageToService(o):window.__dcloud_weex_.postMessageToService(JSON.stringify(o))}if(!window.plus)return window.parent.postMessage({type:c,data:i,pageId:""},"*");if(0===w.length){var a=plus.webview.currentWebview();if(!a)throw new Error("plus.webview.currentWebview() is undefined");var d=a.parent(),r="";r=d?d.id:a.id,w.push(r)}if(plus.webview.getWebviewById(u))plus.webview.postMessageToUniNView({type:c,args:{data:i,webviewIds:w}},u);else{var s=JSON.stringify(i);plus.webview.getLaunchWebview().evalJS('UniPlusBridge.subscribeHandler("'.concat(c,'",').concat(s,",").concat(JSON.stringify(w),");"))}}var w=[],u="__uniapp__service",c="WEB_INVOKE_APPSERVICE",n={navigateTo:function(e){var n=(0