From 4ecf4e7ed029a2ead35e813d9aa8c28e15ee2e1d Mon Sep 17 00:00:00 2001 From: John Owens Date: Tue, 5 Nov 2024 09:42:46 -0800 Subject: [PATCH] renamed --- both/both.html | 14 -------------- both/both.mjs | 4 ---- both/both_chrome.mjs | 9 --------- both/both_node.mjs | 9 --------- 4 files changed, 36 deletions(-) delete mode 100644 both/both.html delete mode 100644 both/both.mjs delete mode 100644 both/both_chrome.mjs delete mode 100644 both/both_node.mjs 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();