fuzzyworld

tools / commit

Another lz update.

37fc3f29513e29116dac5d9d7df67d016dc18fbf · Pavel Safronov · 2022-01-24 09:46:58 -0800 · parents 69f2fda57d58

Another lz update.
 separator-page/index.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/separator-page/index.html b/separator-page/index.html
index 6f3bf90..1b2b72c 100644
--- a/separator-page/index.html
+++ b/separator-page/index.html
@@ -96,7 +96,7 @@ This is a separator page!
                     currentState = newState;
                 }
                 const stateJson = JSON.stringify(currentState);
-                const stateCompressed = LZString144.compressToBase64(stateJson);
+                const stateCompressed = LZString.compressToBase64(stateJson);
                 const newPath = `${path}#${stateCompressed}`;
                 if (newPath.length >= maxDataLength) {
                     alert(`Url is too long (${newPath.length} characters), need to rethink storing data in the hash. Or not using the Separator Page as a OneNote replacement.`);
@@ -160,7 +160,7 @@ This is a separator page!
                 const hash = window.location.hash;
                 if (hash) {
                     const compressed = hash.substring(1);
-                    var json = LZString144.decompressFromBase64(compressed);
+                    var json = LZString.decompressFromBase64(compressed);
                     state = JSON.parse(json);
                 }