mirror of
https://github.com/mhwikicn/mhdos-armor-set-searcher
synced 2025-12-06 13:39:03 +08:00
give different storage key
This commit is contained in:
parent
d9c15f0c8a
commit
4dfb06b95f
@ -3,15 +3,17 @@ import UserEquipmentSettings from '../../data-provider/models/user/UserEquipment
|
|||||||
import { htmlToElement } from '../../helper/html.helper'
|
import { htmlToElement } from '../../helper/html.helper'
|
||||||
import EquipmentMin from '../../data-provider/models/equipment/EquipmentMin'
|
import EquipmentMin from '../../data-provider/models/equipment/EquipmentMin'
|
||||||
|
|
||||||
|
const STORAGE_KEY = 'dos-eq-settings'
|
||||||
|
|
||||||
const saveToStorage = () => {
|
const saveToStorage = () => {
|
||||||
window.localStorage.setItem(
|
window.localStorage.setItem(
|
||||||
'eq-settings',
|
STORAGE_KEY,
|
||||||
UserEquipmentSettings.Instance.serialize(),
|
UserEquipmentSettings.Instance.serialize(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getFromStorage = () => {
|
const getFromStorage = () => {
|
||||||
return window.localStorage.getItem('eq-settings')
|
return window.localStorage.getItem(STORAGE_KEY)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getExclusionElement = (x: EquipmentMin) => {
|
const getExclusionElement = (x: EquipmentMin) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user