Skip to content

Commit 466d5bf

Browse files
committed
rely on file:// instead of notion:// for parent window (tabs)
1 parent 7d67bd9 commit 466d5bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/enhancer/assets-use-notion-protocol.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
document.head.appendChild(
1717
createElement(
1818
- `<link rel="stylesheet" href="enhancement://${mod.dir}/${sheet}.css">`
19-
+ `<link rel="stylesheet" href="notion://www.notion.so/__notion-enhancer/${mod.dir}/${sheet}.css">`
19+
+ `<link rel="stylesheet" href="file://${path.normalize(`${__dirname}/../${mod.dir}/${sheet}.css`)}">`
2020
)
2121
);
2222
}
@@ -27,7 +27,7 @@
2727
margin: auto 1em -0.25em 1em;
2828
background-size: contain;
2929
- background-image: url('enhancement://core/icons/mac+linux.png');
30-
+ background-image: url('notion://www.notion.so/__notion-enhancer/core/icons/mac+linux.png');
30+
+ background-image: url('./icons/mac+linux.png');
3131
background-repeat: no-repeat;
3232
}
3333
#tabs {

0 commit comments

Comments
 (0)