Fix test environment with ?test=1 (#2475)

This commit is contained in:
Alexander Zinchuk 2023-02-01 17:03:21 +01:00
parent ca2ccdb0be
commit 05fbf37926

View File

@ -6,7 +6,7 @@ import { IS_IOS } from '../util/environment';
import { getActions } from '../lib/teact/teactn';
export const LOCATION_HASH = window.location.hash;
const PATH_BASE = window.location.pathname;
const PATH_BASE = `${window.location.pathname}${window.location.search}`;
// Carefully selected by swiping and observing visual changes
// TODO: may be different on other devices such as iPad, maybe take dpi into account?
const SAFARI_EDGE_BACK_GESTURE_LIMIT = 300;