From 9567d86bdbcded847c33627de9005f115f2b5db7 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Tue, 11 Apr 2023 00:51:31 +0100 Subject: [PATCH] open: mark data urls as not local --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f925583..e8c21a9 100644 --- a/src/index.js +++ b/src/index.js @@ -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);