Generalized prompt safety hooks.
This commit is contained in:
parent
08670a7353
commit
1ec5d2300b
|
@ -229,6 +229,14 @@
|
|||
reader.readAsDataURL(blob);
|
||||
});
|
||||
},
|
||||
|
||||
async promptHook(msg, {tabId}) {
|
||||
await browser.tabs.executeScript(tabId, {
|
||||
code: "try { if (document.fullscreenElement) document.exitFullscreen(); } catch (e) {}",
|
||||
matchAboutBlank: true,
|
||||
allFrames: true,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
function onSyncMessage(msg, sender) {
|
||||
|
|
2
src/nscl
2
src/nscl
|
@ -1 +1 @@
|
|||
Subproject commit 3d3ebed08fe4e23813934935b26019d572915156
|
||||
Subproject commit 0d4cbf9c41b0a636c003fb8c94d2316f969e8be1
|
Loading…
Reference in New Issue