File tree 2 files changed +20
-4
lines changed
2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -1862,6 +1862,7 @@ setShowCountryButtons(false)
1862
1862
useEffect ( ( ) => {
1863
1863
function checkForCheats ( ) {
1864
1864
if ( document . getElementById ( "coo1rdinates" ) ) return true ;
1865
+ if ( document . getElementById ( "map-canvas" ) ) return true ;
1865
1866
// try {
1866
1867
// if(window.localStorage.getItem("banned")) return true;
1867
1868
// } catch(e) {
@@ -1872,10 +1873,7 @@ setShowCountryButtons(false)
1872
1873
if ( window . banned ) return ;
1873
1874
sendEvent ( "cheat_detected" )
1874
1875
// redirect to banned page
1875
- alert ( "imagine cheating on a free geography game. L" )
1876
- window . location . href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" ;
1877
- window . banned = true ;
1878
- document . write ( "<h1>You have been banned from playing this game.</h1> If you believe this is a mistake, please contact us at [email protected] " )
1876
+ window . location . href = "/banned" ;
1879
1877
window . localStorage . setItem ( "banned" , "true" )
1880
1878
}
1881
1879
if ( checkForCheats ( ) ) {
Original file line number Diff line number Diff line change
1
+
2
+ export default function Cheats ( ) {
3
+ return (
4
+ < div >
5
+ < h1
6
+ style = { {
7
+ color : "red" ,
8
+ } }
9
+
10
+ > Cheats detected!</ h1 >
11
+ < p > You are permanantly banned.</ p >
12
+ < p >
13
+ If you believe this is an error, please contact us at
< a href = "mailto:[email protected] " >
14
+
15
+ </ p >
16
+ </ div >
17
+ )
18
+ }
You can’t perform that action at this time.
0 commit comments