Fix iOS Firefox viewport position when navigating from login

83858d496dd1d0d6e42a447db866c2642b28d31f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +8 -1Showing whitespace changes
public/script.js+8 -1
@@ -930,10 +930,17 @@ async function firstLoadInit() {
930930 initCfg();
931931 initLogprobs();
932932 doDailyExtensionUpdatesCheck();
933933 await hideLoader();
934+ await fixViewport();
934935 await eventSource.emit(event_types.APP_READY);
935936}
936937
938+async function fixViewport() {
939+ document.body.style.position = 'absolute';
940+ await delay(1);
941+ document.body.style.position = '';
942+}
943+
937944function cancelStatusCheck() {
938945 abortStatusCheck?.abort();
939946 abortStatusCheck = new AbortController();