Skip to content

Commit

Permalink
fix(tauri): adjust deps
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowgate15 committed Aug 2, 2022
1 parent 3296940 commit f8f2876
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ parking_lot = "0.12.1"
tauri = { version = "1.0.4", features = ["shell-open", "updater"] }

[target.'cfg(target_os = "linux")'.dependencies]
webkit2gtk = "0.18.0"
# got from below
# https://github.com/tauri-apps/tauri/blob/v1.0.5/core/tauri/Cargo.toml#L100
webkit2gtk = { version = "0.18.0", features = ["v2_22"] }

[features]
# by default Tauri runs in production mode
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fn main() {
// see https://docs.rs/webkit2gtk/latest/webkit2gtk/struct.WebView.html
// and https://docs.rs/webkit2gtk/latest/webkit2gtk/trait.WebViewExt.html
use webkit2gtk::traits::WebViewExt;
use webkit2gtk::auto::web_view::WebViewExt;
webview.inner().reload();
}

Expand Down

0 comments on commit f8f2876

Please sign in to comment.