Skip to content

Commit

Permalink
fix: not opening browser #876
Browse files Browse the repository at this point in the history
- now it will open browser on given port when preview port and server port is different

- but it doesn't opens the console
  • Loading branch information
bajrangCoder committed Oct 15, 2024
1 parent f418ba7 commit 6c32c35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ async function run(
return;
}

system.inAppBrowser(src, "", false, disableCache);
browser.open(src);
return;
}
}

Expand Down Expand Up @@ -338,7 +339,7 @@ async function run(
? "eruda._shadowRoot.querySelector('.eruda-entry-btn').style.display = 'none';"
: ""
}
sessionStorage.setItem('__console_available', true);
document.addEventListener('showconsole', function () {eruda.show()});
document.addEventListener('hideconsole', function () {eruda.hide()});
Expand Down

0 comments on commit 6c32c35

Please sign in to comment.