Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Apr 27, 2022
1 parent 15724ef commit f144430
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
// define: customDefine
// });

/* eslint-disable no-underscore-dangle */
const backupDefine = customElements.define.bind(window.customElements);

window.customElements.define = (tagName, BaseClass) => {
console.debug('intercepted customElement.define', { tagName, BaseClass });

if(BaseClass.__secret) {
if (BaseClass.__secret) {
console.debug('hmmmm... wonder what could we do here????');
BaseClass.__secret();
BaseClass.__secret();
}

backupDefine(tagName, BaseClass);
}
};

0 comments on commit f144430

Please sign in to comment.