Added application suffix

This commit is contained in:
morethanwords 2021-10-06 00:46:00 +04:00
parent 179366637b
commit 6a7ccbdb57
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"start": "node --max-old-space-size=12048 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.dev.js",
"start:production": "webpack-dev-server --config webpack.prod.js",
"serve": "npm run build; node server.js",
"build": "webpack --config webpack.prod.js",
"build": "npm run generate-changelog; webpack --config webpack.prod.js",
"build:dev": "webpack --config webpack.dev.js",
"test": "jest --config=jest.config.js",
"profile": "webpack --profile --json > stats.json --config webpack.prod.js",

View File

@ -24,6 +24,7 @@ import serverTimeManager from '../mtproto/serverTimeManager';
import assumeType from '../../helpers/assumeType';
import noop from '../../helpers/noop';
import RichTextProcessor from '../richtextprocessor';
import App from '../../config/app';
type UpdatesState = {
pendingPtsUpdates: (Update & {pts: number, pts_count: number})[],
@ -689,7 +690,7 @@ export class ApiUpdatesManager {
fetch('changelogs/' + newVersion + '.md')
.then(res => res.text())
.then(text => {
const pre = `**Telegram was updated to version alpha ${newVersion}**\n\n`;
const pre = `**Telegram Web${App.suffix} was updated to version alpha ${newVersion}**\n\n`;
text = pre + text;