Skip to content

Commit

Permalink
removing bugherd script
Browse files Browse the repository at this point in the history
  • Loading branch information
szydlofj committed Feb 20, 2024
1 parent a36a0d4 commit 2843447
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions web/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,4 @@ export class AppComponent {
this.showHeaderAndFooter = !event.urlAfterRedirects.startsWith('/login');
});
}

/**
* Adding Bugherd script to dev and staging environments
* todo : Remove before final deployment
*/

ngOnInit(): void {
if(window.location.hostname !== 'nhsnlink.org') {
const bugherdScript = this.renderer.createElement('script')

this.renderer.setAttribute(bugherdScript, 'src', 'https://www.bugherd.com/sidebarv2.js?apikey=l0lk84x9ox3ahezpcyc6hw')

this.renderer.appendChild(document.head, bugherdScript)
}
}
}

0 comments on commit 2843447

Please sign in to comment.