diff --git a/src/index.html b/src/index.html index d8c5518f..e51ae83c 100644 --- a/src/index.html +++ b/src/index.html @@ -39,7 +39,7 @@ - +
diff --git a/src/util/updateWebmanifest.ts b/src/util/updateWebmanifest.ts index 81458bdd..ab1a69e9 100644 --- a/src/util/updateWebmanifest.ts +++ b/src/util/updateWebmanifest.ts @@ -5,11 +5,15 @@ import { DEBUG } from '../config'; import { IS_MAC_OS } from './environment'; export default function updateWebmanifest() { + if (!IS_MAC_OS) { + return; + } + const manifest = document.getElementById('the-manifest-placeholder'); if (!manifest) { return; } - const url = `site${IS_MAC_OS ? '_apple' : ''}${DEBUG ? '_dev' : ''}.webmanifest`; + const url = `site_apple${DEBUG ? '_dev' : ''}.webmanifest`; manifest.setAttribute('href', url); } diff --git a/webpack.config.js b/webpack.config.js index b5ca07c8..c0eb41bc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -144,6 +144,7 @@ module.exports = (_env, { mode = 'production' }) => { appName: APP_ENV === 'production' ? 'Telegram Web' : 'Telegram Web Beta', appleIcon: APP_ENV === 'production' ? 'apple-touch-icon' : 'apple-touch-icon-dev', mainIcon: APP_ENV === 'production' ? 'icon-192x192' : 'icon-dev-192x192', + manifest: APP_ENV === 'production' ? 'site.webmanifest' : 'site_dev.webmanifest', template: 'src/index.html', }), new MiniCssExtractPlugin({