Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit(): void {
const size = {width: 100, height: 100, fill: 'currentColor'};
this.getStarted = this.sanitizer.bypassSecurityTrustHtml(octicons.dashboard.toSVG(size));
this.search = this.sanitizer.bypassSecurityTrustHtml(octicons.search.toSVG(size));
this.examples = this.sanitizer.bypassSecurityTrustHtml(octicons.paintcan.toSVG(size));
}
}
ngOnInit() {
this.githubIcon = this.sanitizer.bypassSecurityTrustHtml(octicons['mark-github'].toSVG({fill: 'white'}));
this.searchIcon = this.sanitizer.bypassSecurityTrustHtml(octicons.search.toSVG({style: 'vertical-align:text-bottom;'}));
this.version = this.infoService.getVersion();
this.repoUrl = this.infoService.getRepoUrl();
this.navbar = this.tocService.getNavbarItems();
}