Skip to content

Commit

Permalink
fix: cannot remove installed extensions from tauri
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Oct 11, 2023
1 parent 2633c11 commit b054c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/phoenix/init_vfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ function _setupVFS(fsLib, pathLib){
getPathForVirtualServingURL: function (fullURL) {
if(Phoenix.browser.isTauri) {
if(fullURL.startsWith(tauriAssetServeBaseURL)){
const assetRelativePath = decodeURIComponent(fullURL.replace(tauriAssetServeBaseURL, ""));
const assetRelativePath = decodeURIComponent(fullURL.replace(tauriAssetServeBaseURL, ""))
.replace(/\\/g, "/"); // replace windows path forward slashes \ to /
return `${tauriAssetServeDir}${assetRelativePath}`;
}
return null;
Expand Down

0 comments on commit b054c33

Please sign in to comment.