Skip to content

Commit

Permalink
chore(api): update protocol url path with wry 0.12.1 on Windows (#2409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngo Iok Ui (Wu Yu Wei) committed Aug 12, 2021
1 parent cad7b17 commit 88382fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/windows-protocol-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"api": patch
---

Update protocol url path with wry 0.12.1 on Windows.
2 changes: 1 addition & 1 deletion core/tauri/scripts/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tooling/api/src/tauri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}

Expand Down

0 comments on commit 88382fe

Please sign in to comment.