This commit is contained in:
Eduard Kuzmenko 2021-06-11 18:56:06 +03:00
parent 1795ef24bf
commit 5ed23a27b6
4 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ export default class AppActiveSessionsTab extends SliderSuperTab {
const midtitle = document.createElement('div');
midtitle.classList.add('row-midtitle');
midtitle.innerHTML = [auth.device_model, auth.system_version].join(', ');
midtitle.innerHTML = [auth.device_model, auth.system_version || auth.platform].filter(Boolean).join(', ');
row.subtitle.parentElement.insertBefore(midtitle, row.subtitle);

View File

@ -13,7 +13,7 @@ const App = {
id: 1025907,
hash: '452b0359b988148995f22ff0f4229750',
version: '0.5.6',
langPackVersion: '0.2.0',
langPackVersion: '0.2.1',
langPack: 'macos',
langPackCode: 'en',
domains: [] as string[],

View File

@ -69,7 +69,7 @@ async function requestCache(event: FetchEvent) {
}
const onFetch = (event: FetchEvent): void => {
if(event.request.url.indexOf(location.origin + '/') === 0 && event.request.url.match(/\.(js|css|jpe?g|json|wasm|png|mp3|svg|tgs|ico|woff2?)$/)) {
if(event.request.url.indexOf(location.origin + '/') === 0 && event.request.url.match(/\.(js|css|jpe?g|json|wasm|png|mp3|svg|tgs|ico|woff2?|ttf|webmanifest?)(?:\?.*)?$/)) {
return event.respondWith(requestCache(event));
}

View File

@ -9,9 +9,9 @@
@font-face {
font-family: "#{$tgico-font-family}";
src:
url('#{$tgico-font-path}/#{$tgico-font-family}_1.ttf?4vj0au') format('truetype'),
url('#{$tgico-font-path}/#{$tgico-font-family}_1.woff?4vj0au') format('woff'),
url('#{$tgico-font-path}/#{$tgico-font-family}_1.svg?4vj0au#tgico') format('svg');
url('#{$tgico-font-path}/#{$tgico-font-family}.ttf?4vj0au') format('truetype'),
url('#{$tgico-font-path}/#{$tgico-font-family}.woff?4vj0au') format('woff'),
url('#{$tgico-font-path}/#{$tgico-font-family}.svg?4vj0au#tgico') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;