escape url in /w

This commit is contained in:
brian91292
2023-05-24 08:08:22 -05:00
parent 6505202f97
commit 3693a96565
+4 -1
View File
@@ -126,7 +126,10 @@ export class ElectronService {
switch (url[0]) {
case 'sidequest://w/':
this.adbService
.runAdbCommand('adb shell am start -a android.intent.action.VIEW -d ' + url[1], true)
.runAdbCommand(
'adb shell am start -a android.intent.action.VIEW -d \'"' + new URL(url[1]).toString() + '"\'',
true
)
.then(() => {
this.statusService.showStatus('Launching WebXR in browser...', false, true);
});