open: mark data urls as not local
This commit is contained in:
parent
16c5c35235
commit
9567d86bdb
@ -42,7 +42,7 @@ const startBrowser = async (url, parentDir, { allowHTTP = false, allowNavigation
|
|||||||
log('found browser', browserName, `(${browserType} based)`, 'at path:', browserPath);
|
log('found browser', browserName, `(${browserType} based)`, 'at path:', browserPath);
|
||||||
log('data path:', dataPath);
|
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 localUrl = browserType === 'firefox' ? `http://localhost:${generatePort()}` : 'https://app.gluon';
|
||||||
const basePath = isAbsolute(url) ? url : join(parentDir, url);
|
const basePath = isAbsolute(url) ? url : join(parentDir, url);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user