aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/contextMenus.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/contextMenus.js')
-rw-r--r--javascript/contextMenus.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/javascript/contextMenus.js b/javascript/contextMenus.js
index 9468c107..5107e524 100644
--- a/javascript/contextMenus.js
+++ b/javascript/contextMenus.js
@@ -16,8 +16,7 @@ contextMenuInit = function(){
oldMenu.remove()
}
- let tabButton = uiCurrentTab
- let baseStyle = window.getComputedStyle(tabButton)
+ let baseStyle = window.getComputedStyle(uiCurrentTab)
const contextMenu = document.createElement('nav')
contextMenu.id = "context-menu"
@@ -63,7 +62,7 @@ contextMenuInit = function(){
function appendContextMenuOption(targetElementSelector,entryName,entryFunction){
- currentItems = menuSpecs.get(targetElementSelector)
+ var currentItems = menuSpecs.get(targetElementSelector)
if(!currentItems){
currentItems = []