mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 12:27:16 +03:00
chore(api): update protocol url path with wry 0.12.1 on Windows (#2409)
This commit is contained in:
parent
cad7b17cf4
commit
88382fe147
5
.changes/windows-protocol-path.md
Normal file
5
.changes/windows-protocol-path.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"api": patch
|
||||
---
|
||||
|
||||
Update protocol url path with wry 0.12.1 on Windows.
|
File diff suppressed because one or more lines are too long
@ -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}`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user