aboutsummaryrefslogtreecommitdiffstats
path: root/background.js
diff options
context:
space:
mode:
authorTeddy Wing2021-09-09 21:46:17 +0200
committerTeddy Wing2021-09-09 21:46:17 +0200
commit64cc9ba7781b146da1730ab94d0c27a86315c968 (patch)
treeba5605ee82e5eeb395c31911908142c1f8c703f6 /background.js
parent6801542f066d76f6deb86dd92d23e72c7b90793b (diff)
downloadLegibility-64cc9ba7781b146da1730ab94d0c27a86315c968.tar.bz2
wildcard_domains: Don't redeclare the `domain` variable
This variable is already declared at the top of the loop. We don't need to redeclare it in the if/else branches.
Diffstat (limited to 'background.js')
-rw-r--r--background.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/background.js b/background.js
index 0068e20..bd2be70 100644
--- a/background.js
+++ b/background.js
@@ -52,10 +52,10 @@ function wildcard_domains (hostname) {
var domain;
if (domains[domains.length - 1]) {
- var domain = domain_parts[i] + '.' + domains[domains.length - 1];
+ domain = domain_parts[i] + '.' + domains[domains.length - 1];
}
else {
- var domain = domain_parts[i];
+ domain = domain_parts[i];
}
domains.push(domain);