Explorar o código

fix(core): ignore query string on custom protocol asset resolver (#1420)

Lucas Fernandes Nogueira %!s(int64=4) %!d(string=hai) anos
pai
achega
4de949f981
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tauri/src/app/utils.rs

+ 4 - 0
tauri/src/app/utils.rs

@@ -191,6 +191,10 @@ pub(super) fn build_webview<A: ApplicationExt + 'static>(
       name: "tauri".into(),
       handler: Box::new(move |path| {
         let mut path = path
+          .split('?')
+          // ignore query string
+          .next()
+          .unwrap()
           .to_string()
           .replace(&format!("tauri://{}", bundle_identifier), "");
         if path.ends_with('/') {