@dcloudio/uni-quickapp-webview 2.0.2-4060520250512001 → 2.0.2-4070520250711001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -386,7 +386,7 @@ function promisify (name, api) {
|
|
|
386
386
|
}
|
|
387
387
|
return function promiseApi (options = {}, ...params) {
|
|
388
388
|
if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
|
|
389
|
-
return wrapperReturnValue(name, invokeApi(name, api, options, ...params))
|
|
389
|
+
return wrapperReturnValue(name, invokeApi(name, api, Object.assign({}, options), ...params))
|
|
390
390
|
}
|
|
391
391
|
return wrapperReturnValue(name, handlePromise(new Promise((resolve, reject) => {
|
|
392
392
|
invokeApi(name, api, Object.assign({}, options, {
|
|
@@ -404,7 +404,14 @@ let deviceWidth = 0;
|
|
|
404
404
|
let deviceDPR = 0;
|
|
405
405
|
|
|
406
406
|
function checkDeviceWidth () {
|
|
407
|
-
|
|
407
|
+
let windowWidth, pixelRatio, platform;
|
|
408
|
+
|
|
409
|
+
{
|
|
410
|
+
const baseInfo = qa.getSystemInfoSync();
|
|
411
|
+
windowWidth = baseInfo.windowWidth;
|
|
412
|
+
pixelRatio = baseInfo.pixelRatio;
|
|
413
|
+
platform = baseInfo.platform;
|
|
414
|
+
}
|
|
408
415
|
|
|
409
416
|
deviceWidth = windowWidth;
|
|
410
417
|
deviceDPR = pixelRatio;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-quickapp-webview",
|
|
3
|
-
"version": "2.0.2-
|
|
3
|
+
"version": "2.0.2-4070520250711001",
|
|
4
4
|
"description": "uni-app quickapp-webview",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"name": "quickapp-webview",
|
|
18
18
|
"title": "快应用(Webview)版"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "1cfce22ea63bfcf84c9f9f26df4a5c144286c756"
|
|
21
21
|
}
|