Convert signal.js and preload.js to Typescript
This commit is contained in:
parent
e18510e41c
commit
2464e0a9c1
94 changed files with 2113 additions and 1848 deletions
|
@ -10,9 +10,9 @@ import type { AudioDevice } from 'ringrtc';
|
|||
import type { MediaDeviceSettings } from '../types/Calling';
|
||||
import type {
|
||||
ZoomFactorType,
|
||||
ThemeSettingType,
|
||||
NotificationSettingType,
|
||||
} from '../types/Storage.d';
|
||||
import type { ThemeSettingType } from '../types/StorageUIKeys';
|
||||
import { Button, ButtonVariant } from './Button';
|
||||
import { ChatColorPicker } from './ChatColorPicker';
|
||||
import { Checkbox } from './Checkbox';
|
||||
|
|
|
@ -129,6 +129,10 @@ export const StandaloneRegistration = ({
|
|||
}
|
||||
|
||||
document.location.href = getChallengeURL();
|
||||
if (!window.Signal.challengeHandler) {
|
||||
setError('Captcha handler is not ready!');
|
||||
return;
|
||||
}
|
||||
const token = await window.Signal.challengeHandler.requestCaptcha();
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue