Skip to content

Commit def3540

Browse files
committed
improve naming
Signed-off-by: Chris Abraham <[email protected]>
1 parent ead933d commit def3540

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

static/js/search.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
}
8080
}
8181

82-
async function runBlockedContentTest() {
82+
async function loadSearch() {
8383
if (getCookie("can_google") === "") {
84-
const isBlocked = await checkBlockedSite("https://www.google.com/favicon.ico");
85-
if ( isBlocked ) {
84+
const isGoogleBlocked = await checkBlockedSite("https://www.google.com/favicon.ico");
85+
if ( isGoogleBlocked ) {
8686
// Google is blocked.
8787
console.log("Google is blocked")
8888
document.cookie = "can_google=false;" + path + expires
@@ -100,5 +100,5 @@
100100
}
101101
}
102102

103-
window.onload = runBlockedContentTest;
103+
window.onload = loadSearch;
104104

0 commit comments

Comments
 (0)