open: mark data urls as not local

This commit is contained in:
CanadaHonk 2023-04-11 00:51:31 +01:00
parent 16c5c35235
commit 9567d86bdb

View File

@ -42,7 +42,7 @@ const startBrowser = async (url, parentDir, { allowHTTP = false, allowNavigation
log('found browser', browserName, `(${browserType} based)`, 'at path:', browserPath);
log('data path:', dataPath);
const openingLocal = !url.includes('://');
const openingLocal = !url.includes('://') && !url.includes('data:');
const localUrl = browserType === 'firefox' ? `http://localhost:${generatePort()}` : 'https://app.gluon';
const basePath = isAbsolute(url) ? url : join(parentDir, url);