You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
483 B
JavaScript
21 lines
483 B
JavaScript
$(document).on('keyup', function(e) {
|
|
if (e.keyCode === 27) {
|
|
window.closePermissionsPopup();
|
|
}
|
|
});
|
|
|
|
const $body = $(document.body);
|
|
$body.addClass(`${window.theme}-theme`);
|
|
|
|
window.view = new Whisper.ConfirmationDialogView({
|
|
message: i18n('audioPermissionNeeded'),
|
|
okText: i18n('allowAccess'),
|
|
resolve: () => {
|
|
window.setMediaPermissions(true);
|
|
window.closePermissionsPopup();
|
|
},
|
|
reject: window.closePermissionsPopup,
|
|
});
|
|
|
|
window.view.$el.appendTo($body);
|