Skip to content

Commit

Permalink
fix #1929: drop #hash from write-style-for
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Feb 19, 2025
1 parent 86deb15 commit 18bedd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ async function initPopup(frames, ping0, tab, urlSupported) {
*/
function createWriterElement(frame, index) {
const {frameId, parentFrameId, isDupe} = frame;
const url = tabUrlSupported || frameId ? frame.url : 'https://www.example.com/abcd';
const url = tabUrlSupported || frameId
? frame.url.split('#')[0]
: 'https://www.example.com/abcd';
const isAbout = url.startsWith('about:');
const crumbs = [];
if (!url) return;
Expand Down

0 comments on commit 18bedd9

Please sign in to comment.