Skip to content

Commit

Permalink
fix: import
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Aug 29, 2024
1 parent 104c8a9 commit eb6912b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src-tauri/src/functionality/extension.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use tauri::WebviewWindow;
use crate::log;

#[cfg(target_os = "windows")]
pub fn add_extension(win: &WebviewWindow) {
Expand All @@ -7,8 +8,6 @@ pub fn add_extension(win: &WebviewWindow) {
}, ProfileAddBrowserExtensionCompletedHandler};
use windows::core::{Interface, HSTRING};

use crate::log;

win.with_webview(|webview| unsafe {
let core = match webview
.controller()
Expand Down Expand Up @@ -85,4 +84,4 @@ pub fn add_extension(win: &WebviewWindow) {
#[cfg(not(target_os = "windows"))]
pub fn add_extension(_win: &WebviewWindow) {
log!("Extension is unsupported on non-Windows platforms!");
}
}

0 comments on commit eb6912b

Please sign in to comment.