Skip to content

Commit 6a975cf

Browse files
homeabose
authored andcommitted
fix: mac open with from recent projects just opens up another phoenix window
1 parent e7717f0 commit 6a975cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/phoenix/shell.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ Phoenix.app = {
223223
window.__TAURI__.tauri.invoke("get_mac_deep_link_requests");// this will clear the cached queue in shell
224224
const eventToUse = ["macOSEvent"];
225225
if(typeof fileURL === 'string'){
226-
eventToUse.push(fileURL.replace("file://", ""));
226+
eventToUse.push(decodeURIComponent(fileURL.replace("file://", "")));
227227
} else if(fileURLArray){
228228
for(let fileUrlEntry of fileURLArray){
229-
eventToUse.push(fileUrlEntry.replace("file://", ""));
229+
eventToUse.push(decodeURIComponent(fileUrlEntry.replace("file://", "")));
230230
}
231231
}
232232
handlerFn(eventToUse, "");
@@ -242,7 +242,7 @@ Phoenix.app = {
242242
if(isPrimary){
243243
const eventToUse = ["macOSEvent"];
244244
for(let fileUrlEntry of filesURLList){
245-
eventToUse.push(fileUrlEntry.replace("file://", ""));
245+
eventToUse.push(decodeURIComponent(fileUrlEntry.replace("file://", "")));
246246
}
247247
handlerFn(eventToUse, "");
248248
return;

0 commit comments

Comments
 (0)