MCPcopy Create free account
hub / github.com/GoogleChrome/samples / closeAllPopups

Function closeAllPopups

window-management/script.js:67–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65};
66
67const closeAllPopups = () => {
68 popups.forEach(popup => {
69 popup.removeEventListener("beforeunload", onPopupClose);
70 popup.close();
71 });
72 popups = [];
73 clearInterval(popupMonitor);
74};
75
76const checkPopupClose = () => {
77 popups.forEach(popup => {

Callers 4

getScreensInfoFunction · 0.85
onPopupCloseFunction · 0.85
checkPopupCloseFunction · 0.85
initFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected