Skip to content

Commit 3192ed8

Browse files
committed
Fix bug 'window.on() is not a function for onload method'
1 parent 5224970 commit 3192ed8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/terminal.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ function runRootTerminal(term) {
99
term.runDeepLink();
1010
term.prompt();
1111

12-
window.on('load', () => {
13-
window.addEventListener("resize", term.resizeListener);
14-
});
12+
window.onload = (_) => { window.addEventListener("resize", term.resizeListener) };
1513

1614
term.onData(e => {
1715
if (term._initialized && !term.locked) {

0 commit comments

Comments
 (0)