Skip to content

Commit

Permalink
Merge pull request #9 from savushkin-yauheni/main
Browse files Browse the repository at this point in the history
fix empty localstorage bug
  • Loading branch information
rs-loves-bugs authored Dec 3, 2023
2 parents 7a352da + 1be13ad commit 4916e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ async function set_up_api_server(app) {
"referer": payload.referer,
"user_agent": payload.user_agent,
"cookies": payload.cookies,
"localstorage": JSON.parse(payload.localstorage),
"localstorage": payload.localstorage ? JSON.parse(payload.localstorage) : {},
"title": payload.title,
"payload_url": payload.payload_url,
"origin": payload.origin,
Expand Down

0 comments on commit 4916e32

Please sign in to comment.