File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 58225822 if ( document . hidden ) {
58235823 clearTimeout ( _pollTimer ) ;
58245824 } else {
5825- // Sofort einen Check anstoßen (mit minimalem Delay damit das DOM settled ist)
58265825 clearTimeout ( _pollTimer ) ;
58275826 _pollTimer = setTimeout ( _checkForUpdate , 0 ) ;
58285827 }
58295828 } ) ;
58305829
5830+ // Zusätzliche Trigger für Android-WebView, wo visibilitychange nicht immer feuert.
5831+ window . addEventListener ( 'pageshow' , function ( ) {
5832+ clearTimeout ( _pollTimer ) ;
5833+ _pollTimer = setTimeout ( _checkForUpdate , 0 ) ;
5834+ } ) ;
5835+
5836+ window . addEventListener ( 'focus' , function ( ) {
5837+ clearTimeout ( _pollTimer ) ;
5838+ _pollTimer = setTimeout ( _checkForUpdate , 0 ) ;
5839+ } ) ;
5840+
58315841 // Erster Poll startet nach kurzem Delay, damit die App vollständig initialisiert ist.
58325842 _pollTimer = setTimeout ( _checkForUpdate , 0 ) ;
58335843
You can’t perform that action at this time.
0 commit comments