From 8b1ed8e90c34953d2910c795ac00ab1059a8a5a5 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sun, 9 Apr 2023 15:13:21 +0800 Subject: [PATCH] :sparkles: Support opening with window.open --- src-tauri/src/inject/event.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src-tauri/src/inject/event.js b/src-tauri/src/inject/event.js index e000180..52c0d83 100644 --- a/src-tauri/src/inject/event.js +++ b/src-tauri/src/inject/event.js @@ -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.