Skip to content

Commit 88382fe

Browse files
author
Ngo Iok Ui (Wu Yu Wei)
authored
chore(api): update protocol url path with wry 0.12.1 on Windows (#2409)
1 parent cad7b17 commit 88382fe

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changes/windows-protocol-path.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
Update protocol url path with wry 0.12.1 on Windows.

core/tauri/scripts/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/api/src/tauri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async function invoke<T>(cmd: string, args: InvokeArgs = {}): Promise<T> {
101101
*/
102102
function convertFileSrc(filePath: string): string {
103103
return navigator.userAgent.includes('Windows')
104-
? `https://custom.protocol.asset_${filePath}`
104+
? `https://asset.${filePath}`
105105
: `asset://${filePath}`
106106
}
107107

0 commit comments

Comments
 (0)