Skip to content

Commit

Permalink
fix(driver-universal): should not throw error by default (#1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjun1011 authored Aug 20, 2020
1 parent 064b878 commit a67b75c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/driver-universal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "driver-universal",
"version": "3.1.3",
"version": "3.1.4",
"description": "Driver for Universal App.",
"license": "BSD-3-Clause",
"main": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/driver-universal/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (isWeex) {
} else if (isMiniApp || isWeChatMiniProgram) {
currentDriver = MiniAppDriver;
} else {
throw new Error('Your environment was not supported by driver-universal.');
console.warn('Warning: Your environment was not supported by driver-universal.');
}

export default currentDriver;

0 comments on commit a67b75c

Please sign in to comment.