From 0f9e9c4ce2ae1f410f638ef21ee3c9ba2bf6d9e1 Mon Sep 17 00:00:00 2001 From: macdonst Date: Mon, 27 Nov 2023 11:02:17 -0700 Subject: [PATCH] Shim customElements.get --- index.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index cf65b14..87e20d2 100644 --- a/index.mjs +++ b/index.mjs @@ -1,6 +1,9 @@ if (typeof process !== 'undefined') { global.HTMLElement = function() { return {} } - global.customElements = { define: function() { } } + global.customElements = { + define: function() { }, + get: function() { } + } global.Worker = function() { return { postMessage: function() { } } } }