1
0
Fork 0
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:
Umang G. Patel 2022-07-26 09:56:20 +05:30 committed by GitHub
parent 1fb7bc8dcc
commit 13cc53e4ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 134 additions and 12 deletions

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