Skip to content

Commit

Permalink
fix about:srcdoc iframe in popup
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Jul 23, 2023
1 parent f59a929 commit 712dba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function createWriterElement(frame, index) {
const elFor = !index ? $('#write-style-for') : {};
// For this URL
const urlLink = t.template.writeStyle.cloneNode(true);
const isAboutBlank = url === ABOUT_BLANK;
const isAboutBlank = url.startsWith('about:');
Object.assign(urlLink, {
href: 'edit.html?url-prefix=' + encodeURIComponent(url),
title: elFor.title = `url-prefix("${url}")`,
Expand Down

0 comments on commit 712dba8

Please sign in to comment.