Skip to content

Commit

Permalink
fix(uts-webview.js): 支持 getEnv(),返回 uvue: true
Browse files Browse the repository at this point in the history
  • Loading branch information
hdx committed Sep 28, 2023
1 parent 6489334 commit cfc247d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/uni.webview.1.5.5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/platforms/app-plus/runtime/web-view-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ export default {
},
getEnv (callback) {
/* eslint-disable standard/no-callback-literal */
if (isNvue()) {
if (isUvue()) {
callback({
uvue: true
})
} else if (isNvue()) {
callback({
nvue: true
})
Expand Down

0 comments on commit cfc247d

Please sign in to comment.