feat: update dependencies
This commit is contained in:
parent
55fe1d144f
commit
3e087bd257
16 changed files with 2004 additions and 474 deletions
|
@ -36,8 +36,7 @@ async function invoke(cmd, args = {}) {
|
|||
});
|
||||
}
|
||||
function convertFileSrc(filePath, protocol = "asset") {
|
||||
const path = encodeURIComponent(filePath);
|
||||
return navigator.userAgent.includes("Windows") ? `https://${protocol}.localhost/${path}` : `${protocol}://localhost/${path}`;
|
||||
return window.__TAURI__.convertFileSrc(filePath, protocol);
|
||||
}
|
||||
export {
|
||||
convertFileSrc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue