Skip to content

Commit

Permalink
fix: storage & sessionData flush (#33)
Browse files Browse the repository at this point in the history
* fix: storage & sessionData flush

* chore: up package version
  • Loading branch information
artik19129 authored Aug 20, 2024
1 parent 5d3008b commit 036e843
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bindings/src/client/statics/Storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ class _Storage {
}

flush() {
for (const key in this.#dataCache)
alt.LocalStorage.set(key, this.#dataCache[key]);
for (const key in this.#sessionDataCache)
alt.setMeta(key, this.#sessionDataCache[key]);
for (const [key, value] of this.#dataCache)
alt.LocalStorage.set(key, value);
for (const [key, value] of this.#sessionDataCache)
alt.setMeta(key, value);
alt.LocalStorage.save();
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ragemp-altv-bridge",
"version": "1.0.4",
"version": "1.0.5",
"description": "RAGE Multiplayer alt:V Bridge. This package provides a bridge between RAGE Multiplayer and alt:V. It allows you to use RAGEMP code in alt:V.",
"keywords": [
"ragemp",
Expand Down

0 comments on commit 036e843

Please sign in to comment.