Skip to content

Commit

Permalink
bug fix in lz-string
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-kiss authored Jul 30, 2023
1 parent bec763e commit 8d90a9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extensions/TheShovel/LZ-String.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
};
}
compress(args) {
args.TEXT = Scratch.Cast.toString(args.TEXT);
if (args.TYPE == 'Raw') {
return LZString.compress(args.TEXT);
} else if (args.TYPE == 'Base64') {
Expand All @@ -279,6 +280,7 @@
}

decompress(args) {
args.TEXT = Scratch.Cast.toString(args.TEXT);
if (args.TYPE == 'Raw') {
return LZString.decompress(args.TEXT) || '';
} else if (args.TYPE == 'Base64') {
Expand Down

0 comments on commit 8d90a9d

Please sign in to comment.