Skip to content

Commit

Permalink
change Element.createShadowRoot to Element.attachShadow #22
Browse files Browse the repository at this point in the history
  • Loading branch information
g8up committed Oct 18, 2018
1 parent 443d592 commit 425d150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const getPanelCont = (html) => {
addPanelEvent(panel);

const tmpl = genTmpl();
const root = panel.createShadowRoot();
const root = panel.attachShadow({ mode: 'closed' });
root.appendChild(document.importNode(tmpl.content, true));
content = root.querySelector('#ydd-content');
}
Expand Down

0 comments on commit 425d150

Please sign in to comment.