Fix manifest path
Fix Safari 304 Not Modified
This commit is contained in:
parent
0dab9fc06e
commit
61761effe4
@ -178,7 +178,7 @@ export class AppSidebarLeft extends SidebarSlider {
|
|||||||
icon: 'char w',
|
icon: 'char w',
|
||||||
text: 'ChatList.Menu.SwitchTo.Webogram',
|
text: 'ChatList.Menu.SwitchTo.Webogram',
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
location.href = 'https://web.telegram.org/';
|
location.href = 'https://web.telegram.org/?legacy=1';
|
||||||
},
|
},
|
||||||
verify: () => App.isMainDomain
|
verify: () => App.isMainDomain
|
||||||
}];
|
}];
|
||||||
|
@ -13,7 +13,7 @@ const App = {
|
|||||||
id: 1025907,
|
id: 1025907,
|
||||||
hash: '452b0359b988148995f22ff0f4229750',
|
hash: '452b0359b988148995f22ff0f4229750',
|
||||||
version: '0.5.6',
|
version: '0.5.6',
|
||||||
langPackVersion: '0.2.1',
|
langPackVersion: '0.2.2',
|
||||||
langPack: 'macos',
|
langPack: 'macos',
|
||||||
langPackCode: 'en',
|
langPackCode: 'en',
|
||||||
domains: [] as string[],
|
domains: [] as string[],
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
<link rel="icon" type="image/png" sizes="32x32" href="assets/img/favicon-32x32.png?v=jw3mK7G9Ry">
|
<link rel="icon" type="image/png" sizes="32x32" href="assets/img/favicon-32x32.png?v=jw3mK7G9Ry">
|
||||||
<!--<link rel="icon" type="image/png" sizes="192x192" href="assets/img/android-chrome-192x192.png?v=jw3mK7G9Ry">
|
<!--<link rel="icon" type="image/png" sizes="192x192" href="assets/img/android-chrome-192x192.png?v=jw3mK7G9Ry">
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="assets/img/favicon-16x16.png?v=jw3mK7G9Ry">-->
|
<link rel="icon" type="image/png" sizes="16x16" href="assets/img/favicon-16x16.png?v=jw3mK7G9Ry">-->
|
||||||
<link rel="manifest" href="assets/img/site.webmanifest?v=jw3mK7G9Ry">
|
<link rel="manifest" href="site.webmanifest?v=jw3mK7G9Ry">
|
||||||
<link rel="mask-icon" href="assets/img/safari-pinned-tab.svg?v=jw3mK7G9Ry" color="#3390ec">
|
<link rel="mask-icon" href="assets/img/safari-pinned-tab.svg?v=jw3mK7G9Ry" color="#3390ec">
|
||||||
<!--<link rel="shortcut icon" href="assets/img/favicon.ico?v=jw3mK7G9Ry">-->
|
<!--<link rel="shortcut icon" href="assets/img/favicon.ico?v=jw3mK7G9Ry">-->
|
||||||
<meta name="apple-mobile-web-app-title" content="Telegram WebK">
|
<meta name="apple-mobile-web-app-title" content="Telegram WebK">
|
||||||
<meta name="application-name" content="Telegram WebK">
|
<meta name="application-name" content="Telegram WebK">
|
||||||
<meta name="msapplication-TileColor" content="#2d89ef">
|
<meta name="msapplication-TileColor" content="#2d89ef">
|
||||||
<meta name="msapplication-TileImage" content="assets/img/mstile-144x144.png?v=jw3mK7G9Ry">
|
<meta name="msapplication-TileImage" content="assets/img/mstile-144x144.png?v=jw3mK7G9Ry">
|
||||||
<meta name="msapplication-config" content="assets/img/browserconfig.xml?v=jw3mK7G9Ry">
|
<meta name="msapplication-config" content="browserconfig.xml?v=jw3mK7G9Ry">
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
<meta name="color-scheme" content="light">
|
<meta name="color-scheme" content="light">
|
||||||
{{# each htmlWebpackPlugin.files.css }}
|
{{# each htmlWebpackPlugin.files.css }}
|
||||||
|
@ -43,7 +43,7 @@ const lang = {
|
|||||||
"Chat.Search.NoMessagesFound": "No messages found",
|
"Chat.Search.NoMessagesFound": "No messages found",
|
||||||
"Chat.Search.PrivateSearch": "Private Search",
|
"Chat.Search.PrivateSearch": "Private Search",
|
||||||
//"ChatList.Menu.Archived": "Archived",
|
//"ChatList.Menu.Archived": "Archived",
|
||||||
"ChatList.Menu.SwitchTo.Webogram": "Switch to Webogram",
|
"ChatList.Menu.SwitchTo.Webogram": "Switch to Old Version",
|
||||||
"ChatList.Menu.SwitchTo.Z": "Switch to Z version",
|
"ChatList.Menu.SwitchTo.Z": "Switch to Z version",
|
||||||
"ConnectionStatus.ReconnectIn": "Reconnect in %ds, %s",
|
"ConnectionStatus.ReconnectIn": "Reconnect in %ds, %s",
|
||||||
"ConnectionStatus.Reconnect": "reconnect",
|
"ConnectionStatus.Reconnect": "reconnect",
|
||||||
|
@ -63,9 +63,16 @@ async function requestCache(event: FetchEvent) {
|
|||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = await fetch(event.request);
|
let response = await fetch(event.request);
|
||||||
if(isCorrectResponse(response)) {
|
if(isCorrectResponse(response)) {
|
||||||
cache.put(event.request, response.clone());
|
cache.put(event.request, response.clone());
|
||||||
|
} else if(response.status === 304) { // possible fix for 304 in Safari
|
||||||
|
const url = event.request.url.replace(/\?.+$/, '') + '?' + (Math.random() * 100000 | 0);
|
||||||
|
const request = new Request(url);
|
||||||
|
response = await fetch(request);
|
||||||
|
if(isCorrectResponse(response)) {
|
||||||
|
cache.put(request, response.clone());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
Loading…
Reference in New Issue
Block a user