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

Function init

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

Source from the content-addressed store, hash-verified

148};
149
150const init = async () => {
151 await fetch("iframe.html");
152
153 document.querySelector("button").addEventListener("click", async () => {
154 closeAllPopups();
155 await elmerify();
156 });
157
158 window.addEventListener("beforeunload", () => {
159 closeAllPopups();
160 });
161};
162
163init();

Callers 1

script.jsFile · 0.70

Calls 2

closeAllPopupsFunction · 0.85
elmerifyFunction · 0.85

Tested by

no test coverage detected