Fix iOS Firefox viewport position when navigating from login
| @@ -930,10 +930,17 @@ async function firstLoadInit() { | ||
| 930 | 930 | initCfg(); |
| 931 | 931 | initLogprobs(); |
| 932 | 932 | doDailyExtensionUpdatesCheck(); |
| 933 | 933 | await hideLoader(); |
| 934 | + await fixViewport(); | |
| 934 | 935 | await eventSource.emit(event_types.APP_READY); |
| 935 | 936 | } |
| 936 | 937 | |
| 938 | +async function fixViewport() { | |
| 939 | + document.body.style.position = 'absolute'; | |
| 940 | + await delay(1); | |
| 941 | + document.body.style.position = ''; | |
| 942 | +} | |
| 943 | + | |
| 937 | 944 | function cancelStatusCheck() { |
| 938 | 945 | abortStatusCheck?.abort(); |
| 939 | 946 | abortStatusCheck = new AbortController(); |