Fixed settings and toasts not working
This commit is contained in:
parent
579d68f66a
commit
db8b3493a2
@ -1,14 +1,14 @@
|
|||||||
// Initialization
|
// Initialization
|
||||||
const socket = io.connect(window.location.href)
|
const socket = io.connect(window.location.href)
|
||||||
localStorage = window.localStorage
|
|
||||||
// tabs stuff
|
// tabs stuff
|
||||||
search_selected = ''
|
search_selected = ''
|
||||||
main_selected = ''
|
main_selected = ''
|
||||||
|
var localStorage = window.localStorage
|
||||||
// toasts stuff
|
// toasts stuff
|
||||||
let toastsWithId = {}
|
var toastsWithId = {}
|
||||||
// settings
|
// settings
|
||||||
lastSettings = {}
|
var lastSettings = {}
|
||||||
lastCredentials = {}
|
var lastCredentials = {}
|
||||||
|
|
||||||
function toast(msg, icon = null, dismiss = true, id = null) {
|
function toast(msg, icon = null, dismiss = true, id = null) {
|
||||||
if (toastsWithId[id]) {
|
if (toastsWithId[id]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user