MCPcopy Create free account
hub / github.com/Eltaurus-Lt/CourseDump2022 / preloadMenu

Function preloadMenu

background.js:1–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1const preloadMenu = async () => {
2 if (!await chrome.offscreen.hasDocument()) {
3 await chrome.offscreen.createDocument({
4 url: "menu.html" ,
5 reasons: ["LOCAL_STORAGE"],
6 justification: 'preloading a popup menu'
7 });
8 }
9};
10preloadMenu();
11
12

Callers 1

background.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected