File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- if ( ! window . CFPredictorInjected ) {
2
- window . CFPredictorInjected = true ;
1
+ if ( ! window . LCPredictorInjected ) {
2
+ window . LCPredictorInjected = true ;
3
3
let predictionsTimer ;
4
4
let isListenerActive = false ;
5
5
const setEventListener = ( ) => {
@@ -86,7 +86,7 @@ if (!window.CFPredictorInjected) {
86
86
handle = tds [ 1 ] . querySelector ( "span" ) . innerText . trim ( ) ;
87
87
url = "" ; // TODO: get data_region in this case
88
88
}
89
- const data_region = / ^ h t t p s : \/ \/ l e e t c o d e - c n . c o m / . test ( url )
89
+ const data_region = / ^ h t t p s : \/ \/ l e e t c o d e . c n / . test ( url )
90
90
? "CN"
91
91
: "US" ;
92
92
handlesMap . set (
@@ -156,6 +156,10 @@ if (!window.CFPredictorInjected) {
156
156
row . appendChild ( td ) ;
157
157
}
158
158
rowsUpdated . set ( rowIndex , true ) ;
159
+ } else {
160
+ console . log (
161
+ `handle not found in the results: ${ id } `
162
+ ) ;
159
163
}
160
164
} catch ( err ) {
161
165
console . warn ( err ) ;
You can’t perform that action at this time.
0 commit comments