Skip to content

Commit 74a14a1

Browse files
committed
chore: Add scoped custom elements polyfill
1 parent 888d94f commit 74a14a1

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

packages/compas-open-scd/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
<body>
3232
<open-scd></open-scd>
3333

34+
<script src="./src/polyfill/scoped-custom-elements-polyfill.js"></script>
35+
3436
<script>
3537
const _customElementsDefine = window.customElements.define;
3638
window.customElements.define = (name, cl, conf) => {

packages/compas-open-scd/src/polyfill/scoped-custom-elements-polyfill.js

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)