mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-25 16:19:44 +02:00
Feat/hawk integration (#210)
* update environment variable * add: hawk nodejs and javascript catcher * fontend hawk integration * backend hawk integration * update the env file and config files * support for client, backend error tracking token * client side error tracking refactor * new version of hawk.nodejs catcher added
This commit is contained in:
parent
1fb7bc8dcc
commit
13cc53e4ae
6 changed files with 134 additions and 12 deletions
|
@ -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,9 @@ class Docs {
|
|||
this.page = new Page();
|
||||
this.extensions = new Extensions();
|
||||
this.sidebar = new Sidebar();
|
||||
if (window.config.hawkClientToken) {
|
||||
this.hawk = new HawkCatcher(window.config.hawkClientToken);
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
this.docReady();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue