Fixed settings and toasts not working

This commit is contained in:
RemixDev 2020-04-17 17:25:01 +02:00
parent 579d68f66a
commit db8b3493a2

View File

@ -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]) {