mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 03:06:38 +00:00
Merge pull request #3661 from balena-io/fix-windows-open-from-web
patch: fixed open from browser on windows
This commit is contained in:
commit
c6126a980a
@ -97,6 +97,7 @@ const sourceSelectorReady = new Promise((resolve) => {
|
||||
async function selectImageURL(url?: string) {
|
||||
// 'data:,' is the default chromedriver url that is passed as last argument when running spectron tests
|
||||
if (url !== undefined && url !== 'data:,') {
|
||||
url = url.replace(/\/$/, ''); // on windows the url ends with an extra slash
|
||||
url = url.startsWith(scheme) ? url.slice(scheme.length) : url;
|
||||
await sourceSelectorReady;
|
||||
electron.BrowserWindow.getAllWindows().forEach((window) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user