Move potentially shared vars to separate file

to ensure that they exist when other parts reference them
This commit is contained in:
Dominik Reh
2023-01-28 22:36:16 +01:00
parent dc34db53e4
commit e00199cf06
2 changed files with 24 additions and 24 deletions

24
javascript/_globals.js Normal file
View File

@@ -0,0 +1,24 @@
var CFG = null;
var tagBasePath = "";
var allTags = [];
var translations = new Map();
var currentModelHash = "";
var currentModelName = "";
var wildcardFiles = [];
var wildcardExtFiles = [];
var yamlWildcards = [];
var umiPreviousTags = [];
var embeddings = [];
var hypernetworks = [];
var loras = [];
var results = [];
var tagword = "";
var originalTagword = "";
var resultCount = 0;
var selectedTag = null;
var oldSelectedTag = null;
var previousTags = [];