Przeglądaj źródła

chore(api): update protocol url path with wry 0.12.1 on Windows (#2409)

Ngo Iok Ui (Wu Yu Wei) 4 lat temu
rodzic
commit
88382fe147

+ 5 - 0
.changes/windows-protocol-path.md

@@ -0,0 +1,5 @@
+---
+"api": patch
+---
+
+Update protocol url path with wry 0.12.1 on Windows.

Plik diff jest za duży
+ 0 - 0
core/tauri/scripts/bundle.js


+ 1 - 1
tooling/api/src/tauri.ts

@@ -101,7 +101,7 @@ async function invoke<T>(cmd: string, args: InvokeArgs = {}): Promise<T> {
  */
 function convertFileSrc(filePath: string): string {
   return navigator.userAgent.includes('Windows')
-    ? `https://custom.protocol.asset_${filePath}`
+    ? `https://asset.${filePath}`
     : `asset://${filePath}`
 }
 

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików