mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-20 03:29:02 +00:00
Fix modal detection on preview pages
This commit is contained in:
parent
d468195e00
commit
3830657a1e
@ -317,8 +317,9 @@ module.exports = {
|
|||||||
for ( let { addedNodes } of list) {
|
for ( let { addedNodes } of list) {
|
||||||
if (addedNodes[0] &&
|
if (addedNodes[0] &&
|
||||||
addedNodes[0].style &&
|
addedNodes[0].style &&
|
||||||
(addedNodes[0].style.cssText === 'pointer-events: auto; position: relative; z-index: 1;' ||
|
(addedNodes[0].style.cssText === 'pointer-events: auto; position: relative; z-index: 0;' ||
|
||||||
addedNodes[0].style.cssText === 'pointer-events: auto; position: relative; z-index: 0;') &&
|
addedNodes[0].style.cssText === 'pointer-events: auto; position: relative; z-index: 1;' ||
|
||||||
|
addedNodes[0].style.cssText === 'pointer-events: auto; position: relative; z-index: 2;') &&
|
||||||
document.querySelector('.notion-media-menu')
|
document.querySelector('.notion-media-menu')
|
||||||
)
|
)
|
||||||
addIconsTab();
|
addIconsTab();
|
||||||
|
Loading…
Reference in New Issue
Block a user