diff --git a/both/both.html b/both/both.html deleted file mode 100644 index eac896f..0000000 --- a/both/both.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - Supporting Both Chrome And Node Sandbox - - - -
- - - - diff --git a/both/both.mjs b/both/both.mjs deleted file mode 100644 index 49f835b..0000000 --- a/both/both.mjs +++ /dev/null @@ -1,4 +0,0 @@ -async function main() { - console.log("I am main!"); -} -export { main }; diff --git a/both/both_chrome.mjs b/both/both_chrome.mjs deleted file mode 100644 index 9af059a..0000000 --- a/both/both_chrome.mjs +++ /dev/null @@ -1,9 +0,0 @@ -import { main } from "http://localhost:8000/webgpu-sandbox/both/both.mjs"; -if (typeof process !== "undefined" && process.release.name === "node") { - // running in Node - alert("Use this only from a web browser."); -} else { - // running in browser -} - -main(); diff --git a/both/both_node.mjs b/both/both_node.mjs deleted file mode 100644 index a935566..0000000 --- a/both/both_node.mjs +++ /dev/null @@ -1,9 +0,0 @@ -import { main } from "./both.mjs"; -if (typeof process !== "undefined" && process.release.name === "node") { - // running in Node -} else { - // running in browser - alert("Use this only in Node."); -} - -main();