File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 44
55if ( GetCurrentAppID ( ) > 0 )
66{
7- const elementIdsToTry =
7+ const selectorsToTry =
88 [
9- 'error_box' ,
10- 'app_agegate' ,
11- 'agegate_box' ,
9+ '#error_box' ,
10+ '#app_agegate' ,
11+ '#agegate_box' ,
12+ '.agegate_age_validation' ,
1213 ] ;
1314
14- for ( const id of elementIdsToTry )
15+ for ( const selector of selectorsToTry )
1516 {
16- const container = document . getElementById ( id ) ;
17+ const container = document . querySelector ( selector ) ;
1718
1819 if ( container )
1920 {
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ if( document.getElementById( 'error_box' ) )
99{
1010 AddLinksInErrorBox ( document . getElementById ( 'error_box' ) ) ;
1111}
12- else if ( document . querySelector ( '.agegate_age_validation' ) )
13- {
14- AddLinksInErrorBox ( document . querySelector ( '.agegate_age_validation' ) ) ;
15- }
1612else
1713{
1814 GetOption ( {
You can’t perform that action at this time.
0 commit comments