Skip to content
Snippets Groups Projects
Commit b957c149 authored by David Witter's avatar David Witter
Browse files

more unique constant name

parent 67f49664
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@
<script>
// Get the script document
const thisDoc = (document._currentScript || document.currentScript).ownerDocument;
const myuwProfileDoc = (document._currentScript || document.currentScript).ownerDocument;
class MyUWProfile extends HTMLElement {
constructor() {
......@@ -156,7 +156,7 @@ class MyUWProfile extends HTMLElement {
this.attachShadow({mode: 'open'});
// Get the template and extract the HTML content
const template = thisDoc.getElementById('myuw-profile-template');
const template = myuwProfileDoc.getElementById('myuw-profile-template');
// Append the custom HTML to the shadowroot
this.shadowRoot.appendChild(template.content.cloneNode(true));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment