File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 80
80
}
81
81
82
82
async function runBlockedContentTest ( ) {
83
- if ( getCookie ( "in_china " ) === "" ) {
83
+ if ( getCookie ( "can_google " ) === "" ) {
84
84
const isBlocked = await checkBlockedSite ( "https://www.google.com/favicon.ico" ) ;
85
85
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
89
89
window . renderPageFindSearchResults ( )
90
90
} 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
94
94
window . renderGoogleSearchResults ( )
95
95
}
96
- } else if ( getCookie ( "in_china " ) == "true " ) {
96
+ } else if ( getCookie ( "can_google " ) == "false " ) {
97
97
window . addEventListener ( 'DOMContentLoaded' , ( event ) => {
98
98
window . renderPageFindSearchResults ( )
99
99
} ) ;
You can’t perform that action at this time.
0 commit comments