2022-03-18 22:35:45 +00:00
|
|
|
import { installWindowOnGlobal } from '@lit-labs/ssr/lib/dom-shim.js';
|
|
|
|
installWindowOnGlobal();
|
|
|
|
|
|
|
|
window.global = window;
|
|
|
|
document.getElementsByTagName = () => [];
|
2022-06-02 19:45:11 +00:00
|
|
|
// See https://github.com/lit/lit/issues/2393
|
|
|
|
document.currentScript = null;
|
2022-06-21 12:32:05 +00:00
|
|
|
|
|
|
|
const ceDefine = customElements.define;
|
|
|
|
customElements.define = function(tagName, Ctr) {
|
|
|
|
Ctr[Symbol.for('tagName')] = tagName;
|
|
|
|
return ceDefine.call(this, tagName, Ctr);
|
|
|
|
}
|