give different storage key

This commit is contained in:
TimHasert 2023-08-20 23:41:51 +02:00
parent d9c15f0c8a
commit 4dfb06b95f

View File

@ -3,15 +3,17 @@ import UserEquipmentSettings from '../../data-provider/models/user/UserEquipment
import { htmlToElement } from '../../helper/html.helper'
import EquipmentMin from '../../data-provider/models/equipment/EquipmentMin'
const STORAGE_KEY = 'dos-eq-settings'
const saveToStorage = () => {
window.localStorage.setItem(
'eq-settings',
STORAGE_KEY,
UserEquipmentSettings.Instance.serialize(),
)
}
const getFromStorage = () => {
return window.localStorage.getItem('eq-settings')
return window.localStorage.getItem(STORAGE_KEY)
}
const getExclusionElement = (x: EquipmentMin) => {