From c8d1ce3f528ab7e073ec6d0302ba570acb2fcb11 Mon Sep 17 00:00:00 2001 From: FallBackITA27 Date: Mon, 20 May 2024 15:59:45 +0200 Subject: [PATCH] version control --- gtav-interactive-map/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtav-interactive-map/script.js b/gtav-interactive-map/script.js index 7668ba3..5d8a9a2 100644 --- a/gtav-interactive-map/script.js +++ b/gtav-interactive-map/script.js @@ -12,7 +12,7 @@ const weekday = [ const insertMarkersMode = false; let saveData = { - version: "0.6.0", + version: "0.7.0", selectedTileLayer: "game", lastZoom: 2, lastCoords: [38.959409, -75.410156], @@ -110,6 +110,9 @@ function loadInSaveData(dataStr) { temporarySaveData.lastPickLDOrganics = "hideAll"; } if (temporarySaveData.version === "0.6.0") { + temporarySaveData.version = "0.7.0"; + } + if (temporarySaveData.version === "0.7.0") { // Current version } // Here you check the version tag in the savedata and modify it to match the data right after - this way old save data will not be lost.