mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
cleanup webpack
This commit is contained in:
parent
6d29acb7eb
commit
ecbe543b15
10 changed files with 44 additions and 68 deletions
|
|
@ -12,16 +12,6 @@ export { $win };
|
|||
export const $html = $('html');
|
||||
export const $htmlCL = window.document.documentElement.classList;
|
||||
|
||||
export const $body = $('body');
|
||||
|
||||
export const $div = $('<div></div>');
|
||||
|
||||
export const $hcont = $('<div></div>');
|
||||
$hcont
|
||||
.attr('area', 'hidden')
|
||||
.css({ position: 'absolute', left: -5000 })
|
||||
.appendTo($body);
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
|
|
@ -40,14 +30,9 @@ export const useKeyboardShortcuts = ko.observable(true);
|
|||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
export const sUserAgent =
|
||||
const sUserAgent =
|
||||
('navigator' in window && 'userAgent' in window.navigator && window.navigator.userAgent.toLowerCase()) || '';
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
export const bSafari = !sUserAgent.includes('chrome') && sUserAgent.includes('safari');
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue