Support opening with window.open

This commit is contained in:
Tw93
2023-04-09 15:13:21 +08:00
parent ecb0568ffb
commit 8b1ed8e90c

View File

@@ -141,8 +141,6 @@ document.addEventListener('DOMContentLoaded', () => {
// Rewrite the window.open function.
const originalWindowOpen = window.open;
window.open = function (url, name, specs) {
console.log('window.open called with URL:', url);
// Call Rust code to open a browser.
invoke('open_browser', { url });
// Call the original window.open function to maintain its normal functionality.