1
0
Fork 0
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:
Umang G. Patel 2022-07-03 12:08:40 +05:30
parent c024efc5aa
commit bec5d52e2b
2 changed files with 4 additions and 1 deletions

View file

@ -11,7 +11,8 @@
</head>
<script>
window.config = {
misprintsChatId: "{{ config.misprintsChatId }}"
misprintsChatId: "{{ config.misprintsChatId }}",
hawkToken:"{{ config.twigAppHawkToken }}",
};
</script>
<body>

View file

@ -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();