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:
parent
98cb88f3af
commit
93bf21fa2d
5 changed files with 6 additions and 7 deletions
|
@ -10,7 +10,7 @@ export default class Extensions {
|
|||
*/
|
||||
constructor() {
|
||||
this.misprints = new Misprints({
|
||||
chatId: window.config.chatId
|
||||
chatId: window.config.misprintsChatId
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue