mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-06 22:15:23 +02:00
fontend hawk integration
This commit is contained in:
parent
c024efc5aa
commit
bec5d52e2b
2 changed files with 4 additions and 1 deletions
|
@ -11,7 +11,8 @@
|
|||
</head>
|
||||
<script>
|
||||
window.config = {
|
||||
misprintsChatId: "{{ config.misprintsChatId }}"
|
||||
misprintsChatId: "{{ config.misprintsChatId }}",
|
||||
hawkToken:"{{ config.twigAppHawkToken }}",
|
||||
};
|
||||
</script>
|
||||
<body>
|
||||
|
|
|
@ -17,6 +17,7 @@ import Writing from './modules/writing';
|
|||
import Page from './modules/page';
|
||||
import Extensions from './modules/extensions';
|
||||
import Sidebar from './modules/sidebar';
|
||||
import HawkCatcher from '@hawk.so/javascript';
|
||||
|
||||
/**
|
||||
* Main app class
|
||||
|
@ -30,6 +31,7 @@ class Docs {
|
|||
this.page = new Page();
|
||||
this.extensions = new Extensions();
|
||||
this.sidebar = new Sidebar();
|
||||
this.hawk = new HawkCatcher(window.config.hawkToken);
|
||||
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
this.docReady();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue