Fix modal detection on preview pages

This commit is contained in:
Ryo Hilmawan 2020-11-19 10:58:39 +07:00 committed by GitHub
parent d468195e00
commit 3830657a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();