global: i don't like div soup
This commit is contained in:
parent
08db095418
commit
77a9362425
2 changed files with 5 additions and 6 deletions
|
|
@ -2,12 +2,11 @@
|
|||
if (window._contextMenuInitialized) return;
|
||||
window._contextMenuInitialized = true;
|
||||
|
||||
const menu = document.createElement('div');
|
||||
menu.className = 'context-menu';
|
||||
const menu = document.createElement('helo');
|
||||
menu.innerHTML = `
|
||||
<helo>
|
||||
<helo-content>
|
||||
<img src="/static/assets/gifs/helo.gif"/>
|
||||
</helo>
|
||||
</helo-content>
|
||||
`;
|
||||
menu.style.display = 'none';
|
||||
document.body.appendChild(menu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue