File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments