Skip to content

Commit 2b3f7db

Browse files
author
Avaer Kazmer
committed
Small follow url cleanup
1 parent 0e437a1 commit 2b3f7db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WindowVm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class WorkerVm extends EventTarget {
3030
const queue = [];
3131
const iframe = document.createElement('iframe');
3232
const _getFollowUrl = u => {
33-
if (/^[a-z]+:\/\//.test(u) && !u.startsWith(location.origin)) {
33+
if (/^[a-z]+:\/\//.test(u) && !u.startsWith('data:') && !u.startsWith(location.origin)) {
3434
return fetch('/.f/' + u)
3535
.then(res => res.text());
3636
} else {

0 commit comments

Comments
 (0)