mirror of
https://github.com/mhwikicn/mhdos-armor-set-searcher
synced 2025-12-06 04:59:04 +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 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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user