Explorar o código

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

Ngo Iok Ui (Wu Yu Wei) %!s(int64=4) %!d(string=hai) anos
pai
achega
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.

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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}`
 }
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio