File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 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 ;
33 let predictionsTimer ;
44 let isListenerActive = false ;
55 const setEventListener = ( ) => {
@@ -86,7 +86,7 @@ if (!window.CFPredictorInjected) {
8686 handle = tds [ 1 ] . querySelector ( "span" ) . innerText . trim ( ) ;
8787 url = "" ; // TODO: get data_region in this case
8888 }
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 )
9090 ? "CN"
9191 : "US" ;
9292 handlesMap . set (
@@ -156,6 +156,10 @@ if (!window.CFPredictorInjected) {
156156 row . appendChild ( td ) ;
157157 }
158158 rowsUpdated . set ( rowIndex , true ) ;
159+ } else {
160+ console . log (
161+ `handle not found in the results: ${ id } `
162+ ) ;
159163 }
160164 } catch ( err ) {
161165 console . warn ( err ) ;
You can’t perform that action at this time.
0 commit comments