Browse Source

Added application suffix

master
morethanwords 3 years ago
parent
commit
6a7ccbdb57
  1. 2
      package.json
  2. 3
      src/lib/appManagers/apiUpdatesManager.ts

2
package.json

@ -7,7 +7,7 @@ @@ -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",

3
src/lib/appManagers/apiUpdatesManager.ts

@ -24,6 +24,7 @@ import serverTimeManager from '../mtproto/serverTimeManager'; @@ -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 { @@ -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;

Loading…
Cancel
Save