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
const socket = io.connect(window.location.href)
localStorage = window.localStorage
// tabs stuff
search_selected = ''
main_selected = ''
var localStorage = window.localStorage
// toasts stuff
let toastsWithId = {}
var toastsWithId = {}
// settings
lastSettings = {}
lastCredentials = {}
var lastSettings = {}
var lastCredentials = {}
function toast(msg, icon = null, dismiss = true, id = null) {
if (toastsWithId[id]) {