Skip to content

Commit

Permalink
Shim customElements.get
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Nov 27, 2023
1 parent 2ba1178 commit 0f9e9c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.mjs
Original file line number Diff line number Diff line change
@@ -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() { } } }
}

Expand Down

0 comments on commit 0f9e9c4

Please sign in to comment.