Skip to content

Commit

Permalink
feat(web-view): add uni.webView #1011
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Nov 20, 2019
1 parent 42221f2 commit 1d3e1bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/runtime/web-view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ if (!webViewApi) {
const api = typeof uni !== 'undefined' ? uni : {}

if (api.navigateTo) {
api.miniProgram = webViewApi
api.webView = webViewApi
} else {
Object.assign(api, webViewApi, {
miniProgram: webViewApi
webView: webViewApi
})
}

Expand Down

0 comments on commit 1d3e1bc

Please sign in to comment.