fix(browser-extension): empty bootstrap backdrops

This commit is contained in:
wanhose 2022-12-01 17:01:47 +01:00
parent 01fbdf6f45
commit 02f0c20014

View File

@ -130,6 +130,12 @@ const match = (node, skipMatch) => {
*/
const fix = () => {
const backdrop = document.getElementsByClassName('modal-backdrop')[0];
if (backdrop && backdrop.children.length === 0) {
backdrop.remove();
}
document.getElementsByClassName('_31e')[0]?.classList.remove('_31e');
if (data?.skips.length && !data.skips.includes(hostname)) {