mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
Web Bots: Allow requesting storage (#1966)
This commit is contained in:
parent
6fc3bb2416
commit
4f04889b63
@ -55,6 +55,14 @@ const MAIN_BUTTON_ANIMATION_TIME = 250;
|
||||
const PROLONG_INTERVAL = 45000; // 45s
|
||||
const ANIMATION_WAIT = 400;
|
||||
const LINK_PREFIX = 'https://t.me/';
|
||||
const SANDBOX_ATTRIBUTES = [
|
||||
'allow-scripts',
|
||||
'allow-same-origin',
|
||||
'allow-popups',
|
||||
'allow-forms',
|
||||
'allow-modals',
|
||||
'allow-storage-access-by-user-activation',
|
||||
].join(' ');
|
||||
|
||||
const WebAppModal: FC<OwnProps & StateProps> = ({
|
||||
webApp,
|
||||
@ -369,7 +377,7 @@ const WebAppModal: FC<OwnProps & StateProps> = ({
|
||||
className={buildClassName('web-app-frame', shouldDecreaseWebFrameSize && 'with-button')}
|
||||
src={url}
|
||||
title={`${bot?.firstName} Web App`}
|
||||
sandbox="allow-scripts allow-same-origin allow-popups allow-forms allow-modals"
|
||||
sandbox={SANDBOX_ATTRIBUTES}
|
||||
allow="camera; microphone; geolocation;"
|
||||
allowFullScreen
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user