Skip to content

Commit

Permalink
fix: 文件大小写
Browse files Browse the repository at this point in the history
  • Loading branch information
skique committed Sep 20, 2024
1 parent 43b45d3 commit 7a3337a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interface ExtendedItem {
expires?: number // 可选属性
}

const storage = {
const localstorage = {
// 检查是否支持localStorage
isSupported(): boolean {
return typeof window !== 'undefined' && 'localStorage' in window
Expand Down Expand Up @@ -55,4 +55,4 @@ const storage = {
}
}

export default storage
export default localstorage

0 comments on commit 7a3337a

Please sign in to comment.