Browse Source

misc

master
Eduard Kuzmenko 4 years ago
parent
commit
5ed23a27b6
  1. 2
      src/components/sidebarLeft/tabs/activeSessions.ts
  2. 2
      src/config/app.ts
  3. 2
      src/lib/mtproto/mtproto.service.ts
  4. 6
      src/scss/partials/_fonts.scss

2
src/components/sidebarLeft/tabs/activeSessions.ts

@ -42,7 +42,7 @@ export default class AppActiveSessionsTab extends SliderSuperTab { @@ -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);

2
src/config/app.ts

@ -13,7 +13,7 @@ const App = { @@ -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[],

2
src/lib/mtproto/mtproto.service.ts

@ -69,7 +69,7 @@ async function requestCache(event: FetchEvent) { @@ -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));
}

6
src/scss/partials/_fonts.scss

@ -9,9 +9,9 @@ @@ -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;

Loading…
Cancel
Save