Skip to content

Commit

Permalink
Handle base64url on decode
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed May 19, 2024
1 parent 6652241 commit f389fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function func(rand, opts, op, msg) {
return btoa(str)
},
atob: function(str) {
return atob(str)
return atob(str.replace(/\-/g, "+").replace(/_/g, "/"))
},
parse: function(str) {
return JSON.parse(str)
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "JSON Lite",
"version": "24.4.0",
"version": "24.5.0",
"author" : "Lauri Rooden",
"description": "Fast JSON viewer - highlights, shows items count/size, handles large files",
"icons": {
Expand Down

0 comments on commit f389fb5

Please sign in to comment.