add .vivaldi class on <html>

This commit is contained in:
tophf 2017-12-07 06:52:43 +03:00
parent aeca16f663
commit fb3138f700

View File

@ -61,8 +61,15 @@ if (BG && !BG.getStyles && BG !== window) {
BG = null; BG = null;
} }
if (!BG || BG !== window) { if (!BG || BG !== window) {
document.documentElement.classList.toggle('firefox', FIREFOX); if (FIREFOX) {
document.documentElement.classList.toggle('opera', OPERA); document.documentElement.classList.add('firefox');
}
if (OPERA) {
document.documentElement.classList.add('opera');
}
if (chrome.app && navigator.userAgent.includes('Vivaldi')) {
document.documentElement.classList.add('vivaldi');
}
// TODO: remove once our manifest's minimum_chrome_version is 50+ // TODO: remove once our manifest's minimum_chrome_version is 50+
// Chrome 49 doesn't report own extension pages in webNavigation apparently // Chrome 49 doesn't report own extension pages in webNavigation apparently
if (CHROME && CHROME < 2661) { if (CHROME && CHROME < 2661) {