Save last used version in local storage
parent
77839a0e03
commit
8279e6260a
|
@ -1,5 +1,5 @@
|
|||
const fx_version = '0.6.7.2'; // FX Client Version
|
||||
const fx_update = 'Mar 2'; // FX Client Last Updated
|
||||
const fx_version = '0.6.7.3'; // FX Client Version
|
||||
const fx_update = 'Mar 8'; // FX Client Last Updated
|
||||
|
||||
if ("serviceWorker" in navigator) {
|
||||
navigator.serviceWorker.addEventListener("message", (e) => {
|
||||
|
@ -23,6 +23,9 @@ import hoveringTooltip from "./hoveringTooltip.js";
|
|||
import { keybindFunctions, keybindHandler, mobileKeybinds } from "./keybinds.js";
|
||||
import customLobby from './customLobby.js';
|
||||
|
||||
const savedVersion = localStorage.getItem("fx_version");
|
||||
if (savedVersion !== fx_version) localStorage.setItem("fx_version", fx_version);
|
||||
|
||||
window.__fx = window.__fx || {};
|
||||
const __fx = window.__fx;
|
||||
__fx.version = fx_version + " " + fx_update;
|
||||
|
|
Loading…
Reference in New Issue