fix: escape ampersands in OAuth URL on Windows

This commit is contained in:
Pedro Farias
2026-01-19 02:26:55 -03:00
parent 5ae19a5b72
commit a8ca1b79f3

View File

@@ -95,7 +95,7 @@ function openBrowser(url) {
args = [url]; args = [url];
} else if (platform === 'win32') { } else if (platform === 'win32') {
command = 'cmd'; command = 'cmd';
args = ['/c', 'start', '', url]; args = ['/c', 'start', '', url.replace(/&/g, '^&')];
} else { } else {
command = 'xdg-open'; command = 'xdg-open';
args = [url]; args = [url];