blob: e4d123c37afd300d867c7d7b9aec6cf7025a05aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { installWindowOnGlobal } from '@lit-labs/ssr/lib/dom-shim.js';
installWindowOnGlobal();
window.global = window;
document.getElementsByTagName = () => [];
// See https://github.com/lit/lit/issues/2393
document.currentScript = null;
const ceDefine = customElements.define;
customElements.define = function(tagName, Ctr) {
Ctr[Symbol.for('tagName')] = tagName;
return ceDefine.call(this, tagName, Ctr);
}
|