mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
43a44793c5
Also removed all hints of previous linters
26 lines
543 B
JavaScript
26 lines
543 B
JavaScript
/* global $, Whisper, i18n */
|
|
|
|
$(document).on('keyup', e => {
|
|
'use strict';
|
|
|
|
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: () => {
|
|
'use strict';
|
|
|
|
window.setMediaPermissions(true);
|
|
window.closePermissionsPopup();
|
|
},
|
|
reject: window.closePermissionsPopup,
|
|
});
|
|
|
|
window.view.$el.appendTo($body);
|