Skip to content

Commit

Permalink
Merge pull request #3 from enhance-dev/shim-get
Browse files Browse the repository at this point in the history
Shim customElements.get
  • Loading branch information
kristoferjoseph authored Nov 27, 2023
2 parents 2ba1178 + 0f9e9c4 commit a5e4df9
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 a5e4df9

Please sign in to comment.