Skip to content

Commit

Permalink
Remove function wrapper from timer
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Apr 26, 2024
1 parent 338448c commit 7be1e11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ function func(rand, opts, op, msg) {
if (++i > 9000) {
len = str.length
document.title = (0|(100*re.lastIndex/len)) + "% of " + units(len)
return setTimeout(function() { loop(str, re) }, 0)
return setTimeout(loop, 0, str, re)
}
}
document.title = ""
Expand Down
1 change: 0 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
!function(body) {
var jsonp
, jsonRe = /^\s*(?:\[\s*(?=-?\d|true|false|null|["[{])[^]*\]|\{\s*"[^]+\})\s*$/
, body = document.body
, str = body && body.firstChild && (body.firstChild.tagName === "PRE" ? body.firstChild : body).innerHTML

if (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": "23.5.0",
"version": "24.4.0",
"author" : "Lauri Rooden",
"description": "Fast JSON viewer - highlights, shows items count/size, handles large files",
"icons": {
Expand Down

0 comments on commit 7be1e11

Please sign in to comment.