Only use file: & blob: URI workaround in Safari

This commit is contained in:
Thomas Weber committed 2021-10-22 22:33:21 -05:00
1 parent c22d8c394d
commit 3bc168ef0c
1 file changed
+4 -2
+4 -2
View File
@@ -1,6 +1,8 @@
import {isSafari} from './browser';
const origin = process.env.STANDALONE ? '*' : location.origin;
// Some browsers (Safari) do not let file: URIs open blob: URIs
const canUseBlobWindow = origin !== '*';
// Safari does not let file: URIs used by standalone version to open blob: URIs
const canUseBlobWindow = !(process.env.STANDALONE && isSafari);
const source = `<!DOCTYPE html>
<html>