remove global define
This commit is contained in:
Родитель
874b7ce382
Коммит
976ad421dd
|
@ -263,16 +263,3 @@ export class IncludeFragmentElement extends HTMLElement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
|
||||||
interface Window {
|
|
||||||
IncludeFragmentElement: typeof IncludeFragmentElement
|
|
||||||
}
|
|
||||||
interface HTMLElementTagNameMap {
|
|
||||||
'include-fragment': IncludeFragmentElement
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!window.customElements.get('include-fragment')) {
|
|
||||||
window.IncludeFragmentElement = IncludeFragmentElement
|
|
||||||
window.customElements.define('include-fragment', IncludeFragmentElement)
|
|
||||||
}
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче