Skip to content

Commit 6c32c35

Browse files
committed
fix: not opening browser #876
- now it will open browser on given port when preview port and server port is different - but it doesn't opens the console
1 parent f418ba7 commit 6c32c35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/run.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ async function run(
3939
return;
4040
}
4141

42-
system.inAppBrowser(src, "", false, disableCache);
42+
browser.open(src);
43+
return;
4344
}
4445
}
4546

@@ -338,7 +339,7 @@ async function run(
338339
? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';"
339340
: ""
340341
}
341-
342+
342343
sessionStorage.setItem('__console_available', true);
343344
document.addEventListener('showconsole', function () {eruda.show()});
344345
document.addEventListener('hideconsole', function () {eruda.hide()});

0 commit comments

Comments
 (0)