We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead933d commit def3540Copy full SHA for def3540
static/js/search.js
@@ -79,10 +79,10 @@
79
}
80
81
82
- async function runBlockedContentTest() {
+ async function loadSearch() {
83
if (getCookie("can_google") === "") {
84
- const isBlocked = await checkBlockedSite("https://www.google.com/favicon.ico");
85
- if ( isBlocked ) {
+ const isGoogleBlocked = await checkBlockedSite("https://www.google.com/favicon.ico");
+ if ( isGoogleBlocked ) {
86
// Google is blocked.
87
console.log("Google is blocked")
88
document.cookie = "can_google=false;" + path + expires
@@ -100,5 +100,5 @@
100
101
102
103
- window.onload = runBlockedContentTest;
+ window.onload = loadSearch;
104
0 commit comments