1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-25 08:09:41 +02:00

Misprints fix (#72)

* Added misprints

* Rebuilt bundle in prod mode

* Added config from .codexdocsrc

* Updated .sample

* Removed chatId type conversion

* Renamed chatId to misprintsChatId

* Removed duplicate package

* Moved misprintsChatId initialization
This commit is contained in:
DorofeevMark 2019-03-14 12:36:25 +03:00 committed by GitHub
parent 98cb88f3af
commit 93bf21fa2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 7 deletions

View file

@ -10,7 +10,7 @@ export default class Extensions {
*/
constructor() {
this.misprints = new Misprints({
chatId: window.config.chatId
chatId: window.config.misprintsChatId
});
}

View file

@ -10,9 +10,8 @@
</head>
<script>
window.config = {
chatId: ''
misprintsChatId: "{{ config.misprintsChatId }}"
};
window.config.chatId = Number("{{ config.chatId }}");
</script>
<body>
{% include "components/header.twig" with res.locals.isAuthorized %}