Skip to content

Commit

Permalink
Fix script error when auto open first level for element tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhengbo2 committed Oct 4, 2019
1 parent b131e21 commit 482d5e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/vconsole.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/element/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ class VConsoleElementsTab extends VConsolePlugin {
let $rootView = this.renderView(this.node, $.one('.vc-log', this.$tabbox));
// auto open first level
let $node = $.one('.vcelm-node', $rootView);
$node && $node.click();
// Before Android WebView 4.4, click is only defined on buttons and inputs
$node && $node.click && $node.click();

// start observing
let config = {
Expand Down

0 comments on commit 482d5e0

Please sign in to comment.