Skip to content

Commit

Permalink
fix(client, compat): Fix LocalStorage compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Nov 26, 2023
1 parent 3c88b24 commit e1586c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/js/compatibility/classes/localStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
// import * as alt from "@altv/client";

class LocalStorage {
get(key) {
static get(key) {
return alt.LocalStorage.get(key);
}

set(key, value) {
static set(key, value) {
alt.LocalStorage.set(key, value);
}

delete(key) {
static delete(key) {
alt.LocalStorage.remove(key);
}

deleteAll() {
static deleteAll() {
alt.LocalStorage.clear();
}

clear() {
static clear() {
alt.LocalStorage.clear();
}

save() {
static save() {
alt.LocalStorage.save();
}

has(key) {
static has(key) {
return alt.LocalStorage.has(key);
}
}
Expand Down

0 comments on commit e1586c6

Please sign in to comment.