File tree Expand file tree Collapse file tree 2 files changed +2
-48
lines changed Expand file tree Collapse file tree 2 files changed +2
-48
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class LocalStorageEngine implements IStringStorageEngine {
40
40
if ( ! stored ) return null ;
41
41
42
42
try {
43
- return LZString . decompress ( stored ) || null ;
43
+ return LZString . decompressFromBase64 ( stored ) || null ;
44
44
} catch ( e ) {
45
45
// Failed to decompress configuration, removing corrupted data
46
46
this . localStorage . removeItem ( this . contentsKey ) ;
@@ -53,7 +53,7 @@ export class LocalStorageEngine implements IStringStorageEngine {
53
53
} ;
54
54
55
55
public setContentsJsonString = async ( configurationJsonString : string ) : Promise < void > => {
56
- const compressed = LZString . compress ( configurationJsonString ) ;
56
+ const compressed = LZString . compressToBase64 ( configurationJsonString ) ;
57
57
this . localStorage . setItem ( this . contentsKey , compressed ) ;
58
58
} ;
59
59
You can’t perform that action at this time.
0 commit comments