mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Strip .no-css, .csstransitions and .cssanimations
This commit is contained in:
parent
e01e484259
commit
90cec2171a
13 changed files with 25 additions and 76 deletions
|
|
@ -47,20 +47,6 @@ const useJsNextBundle = (function() {
|
|||
})();
|
||||
/* eslint-enable */
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {string} name
|
||||
* @returns {string}
|
||||
*/
|
||||
function getComputedStyle(id, name) {
|
||||
const element = window.document.getElementById(id);
|
||||
return element && element.currentStyle
|
||||
? element.currentStyle[name]
|
||||
: window.getComputedStyle
|
||||
? window.getComputedStyle(element, null).getPropertyValue(name)
|
||||
: null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} styles
|
||||
* @returns {void}
|
||||
|
|
@ -302,9 +288,6 @@ window.__runBoot = function() {
|
|||
}
|
||||
|
||||
const root = window.document.documentElement;
|
||||
if ('none' !== getComputedStyle('rl-check', 'display')) {
|
||||
root.className += ' no-css';
|
||||
}
|
||||
|
||||
if (useJsNextBundle) {
|
||||
root.className += ' js-next';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue