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

This commit is contained in:
Ngo Iok Ui (Wu Yu Wei) 2021-08-13 00:56:07 +08:00 committed by GitHub
parent cad7b17cf4
commit 88382fe147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View 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

View File

@ -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}`
}