// SPDX-License-Identifier: MIT // drAIML WebGPU helper ยท on drAIML's pages only. Tells the page the helper is installed (so its donation panel can offer // "check my graphics card"), and opens the check when the page asks. It reads nothing from the page. const api = typeof browser !== "undefined" ? browser : chrome; document.documentElement.dataset.webgpuHelper = api.runtime.getManifest().version; window.addEventListener("message", (e) => { if (e.source === window && e.data && e.data.type === "draiml-webgpu-helper:open") api.runtime.sendMessage({ type: "open-check" }); });