Skip to content

Commit d1d7bf2

Browse files
committed
Move away from focusing on "China"
Signed-off-by: Chris Abraham <[email protected]>
1 parent 8e5f618 commit d1d7bf2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

static/js/search.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@
8080
}
8181

8282
async function runBlockedContentTest() {
83-
if (getCookie("in_china") === "") {
83+
if (getCookie("can_google") === "") {
8484
const isBlocked = await checkBlockedSite("https://www.google.com/favicon.ico");
8585
if ( isBlocked ) {
86-
// Site is blocked so we think you are in China.
87-
console.log("We think you ARE in China")
88-
document.cookie = "in_china=true;" + path + expires
86+
// Google is blocked.
87+
console.log("Google is blocked")
88+
document.cookie = "can_google=false;" + path + expires
8989
window.renderPageFindSearchResults()
9090
} else {
91-
// Site isn't blocked so we think you are NOT in China.
92-
console.log("We think you are NOT in China")
93-
document.cookie = "in_china=false;" + path + expires
91+
// Google is not blocked.
92+
console.log("Google is NOT blocked")
93+
document.cookie = "can_google=true;" + path + expires
9494
window.renderGoogleSearchResults()
9595
}
96-
} else if (getCookie("in_china") == "true") {
96+
} else if (getCookie("can_google") == "false") {
9797
window.addEventListener('DOMContentLoaded', (event) => {
9898
window.renderPageFindSearchResults()
9999
});

0 commit comments

Comments
 (0)