Merge branch 'master' of github.com:bitwarden/desktop
This commit is contained in:
commit
c9f7a781a8
|
@ -98,8 +98,13 @@ environmentService.setUrlsFromStorage().then(() => {
|
||||||
return syncService.fullSync(true);
|
return syncService.fullSync(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
function initFactory(i18n: I18nService): Function {
|
function initFactory(i18n: I18nService, platformUtilsService: DesktopPlatformUtilsService): Function {
|
||||||
return () => i18n.init();
|
return async () => {
|
||||||
|
await i18n.init();
|
||||||
|
const htmlEl = window.document.documentElement;
|
||||||
|
htmlEl.classList.add('os_' + platformUtilsService.getDeviceString());
|
||||||
|
htmlEl.classList.add('locale_' + i18n.translationLocale);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
@ -121,7 +126,10 @@ function initFactory(i18n: I18nService): Function {
|
||||||
{
|
{
|
||||||
provide: APP_INITIALIZER,
|
provide: APP_INITIALIZER,
|
||||||
useFactory: initFactory,
|
useFactory: initFactory,
|
||||||
deps: [I18nServiceAbstraction],
|
deps: [
|
||||||
|
I18nServiceAbstraction,
|
||||||
|
PlatformUtilsServiceAbstraction,
|
||||||
|
],
|
||||||
multi: true,
|
multi: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html class="__OS__">
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
|
@ -16,10 +16,6 @@ html, body {
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
|
||||||
border-top: 1px solid $border-color-dark;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
font-family: $font-family-sans-serif;
|
font-family: $font-family-sans-serif;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
@import "variables.scss";
|
||||||
|
|
||||||
|
html.os_windows {
|
||||||
|
body {
|
||||||
|
border-top: 1px solid $border-color-dark;
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,3 +8,4 @@
|
||||||
@import "misc.scss";
|
@import "misc.scss";
|
||||||
@import "modal.scss";
|
@import "modal.scss";
|
||||||
@import "plugins.scss";
|
@import "plugins.scss";
|
||||||
|
@import "environment.scss";
|
||||||
|
|
Loading…
Reference in New Issue