feat: add utils to create and remove the context menu
This commit is contained in:
parent
0ea9c8f168
commit
b51efc01e9
2 changed files with 23 additions and 0 deletions
6
utils/removeContextMenu.ts
Normal file
6
utils/removeContextMenu.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export default () => {
|
||||
const contextMenu = document.getElementById("context-menu");
|
||||
if (contextMenu) {
|
||||
contextMenu.remove();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue