Skip to content

Commit

Permalink
actually checked for isNaN in core_storage_save()
Browse files Browse the repository at this point in the history
  • Loading branch information
honzi committed Jun 6, 2024
1 parent 246c35f commit c7ab715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ function core_storage_save(keys){
core_storage_data[key] = data;

if(data !== void 0
&& !globalThis.isNaN(data)
&& !Number.isNaN(data)
&& String(data).length
&& data !== core_storage_info[key]['default']){
globalThis.localStorage.setItem(
Expand Down

0 comments on commit c7ab715

Please sign in to comment.