We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0098ca commit d2ae6b7Copy full SHA for d2ae6b7
shells/dev/target/index.js
@@ -34,13 +34,15 @@ new Vue({
34
35
// custom element instance
36
const ce = document.querySelector('#shadow')
37
-const shadowRoot = ce.attachShadow({ mode: 'open' })
+if (ce.attachShadow) {
38
+ const shadowRoot = ce.attachShadow({ mode: 'open' })
39
-const ceVM = new Vue({
40
- name: 'Shadow',
41
- render (h) {
42
- return h('h2', 'Inside Shadow DOM!')
43
- }
44
-}).$mount()
+ const ceVM = new Vue({
+ name: 'Shadow',
+ render (h) {
+ return h('h2', 'Inside Shadow DOM!')
+ }
45
+ }).$mount()
46
-shadowRoot.appendChild(ceVM.$el)
47
+ shadowRoot.appendChild(ceVM.$el)
48
+}
0 commit comments