Fix permanent switching to WebK
This commit is contained in:
parent
0823cb5625
commit
f3d76d0e18
@ -54,6 +54,7 @@ const ANIMATION_LEVEL_OPTIONS = [0, 1, 2];
|
|||||||
|
|
||||||
const LEGACY_VERSION_URL = 'https://web.telegram.org/?legacy=1';
|
const LEGACY_VERSION_URL = 'https://web.telegram.org/?legacy=1';
|
||||||
const WEBK_VERSION_URL = 'https://web.telegram.org/k/';
|
const WEBK_VERSION_URL = 'https://web.telegram.org/k/';
|
||||||
|
const PERMANENT_VERSION_KEY = 'kz_version';
|
||||||
|
|
||||||
const LeftMainHeader: FC<OwnProps & StateProps & DispatchProps> = ({
|
const LeftMainHeader: FC<OwnProps & StateProps & DispatchProps> = ({
|
||||||
content,
|
content,
|
||||||
@ -146,7 +147,7 @@ const LeftMainHeader: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
}, [animationLevel, setSettingOption]);
|
}, [animationLevel, setSettingOption]);
|
||||||
|
|
||||||
const handleSwitchToWebK = () => {
|
const handleSwitchToWebK = () => {
|
||||||
localStorage.setItem('kz_version', 'K');
|
localStorage.setItem(PERMANENT_VERSION_KEY, JSON.stringify('K'));
|
||||||
};
|
};
|
||||||
|
|
||||||
const isSearchFocused = (
|
const isSearchFocused = (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user