Revert "Merge pull request #1627 from emindeniz99/master"
This reverts commit9063a98949
, reversing changes made to540ca5d204
.
This commit is contained in:
parent
e0f4386042
commit
626145e492
|
@ -74,16 +74,12 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
|
||||||
return async () => {
|
return async () => {
|
||||||
if (!popupUtilsService.inPopup(window)) {
|
if (!popupUtilsService.inPopup(window)) {
|
||||||
window.document.body.classList.add('body-full');
|
window.document.body.classList.add('body-full');
|
||||||
} else {
|
} else if (window.screen.availHeight < 600) {
|
||||||
if (window.screen.availHeight < 600) {
|
|
||||||
window.document.body.classList.add('body-xs');
|
window.document.body.classList.add('body-xs');
|
||||||
} else if (window.screen.availHeight <= 800) {
|
} else if (window.screen.availHeight <= 800) {
|
||||||
window.document.body.classList.add('body-sm');
|
window.document.body.classList.add('body-sm');
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.style.setProperty('height', `${window.innerHeight}px`, 'important');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (BrowserApi.getBackgroundPage() != null) {
|
if (BrowserApi.getBackgroundPage() != null) {
|
||||||
await stateService.save(ConstantsService.disableFaviconKey,
|
await stateService.save(ConstantsService.disableFaviconKey,
|
||||||
await storageService.get<boolean>(ConstantsService.disableFaviconKey));
|
await storageService.get<boolean>(ConstantsService.disableFaviconKey));
|
||||||
|
|
Loading…
Reference in New Issue