✨ Support opening with window.open
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user