mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-01 06:40:57 -08:00
Fix a whole bunch of implicit globals
This commit is contained in:
parent
34a6ad80d5
commit
8ccc27127b
13 changed files with 60 additions and 62 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue