Skip to content

Commit 358455e

Browse files
committed
refactor: browser module on nodejs env
check exist of detector before invoke close #58
1 parent 5389543 commit 358455e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/browser.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
}
8686
};
8787

88-
detector[appName]();
88+
var fn = detector[appName];
89+
90+
if (fn) {
91+
detector[appName]();
92+
}
93+
8994
tui.util.browser = browser;
9095
})(window.tui);

0 commit comments

Comments
 (0)