File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 11import { Component , OnInit } from '@angular/core' ;
22import { ThemeService } from './service/theme.service' ;
3- import { environment } from '../environments/environment' ;
43
54@Component ( {
65 selector : 'app-root' ,
@@ -23,18 +22,6 @@ export class AppComponent implements OnInit {
2322 this . menuIsOpen = false ;
2423 } , 600 ) ;
2524 }
26-
27- if ( environment ?. production === false ) {
28- fetch (
29- 'https://api.github.com/repos/devsecopsmaturitymodel/DevSecOps-MaturityModel/branches/v4'
30- ) . then ( async response => {
31- let gitinfo : any = await response . json ( ) ;
32- let commitDate : string = gitinfo ?. commit ?. commit ?. author ?. date ;
33- if ( commitDate ) {
34- this . subtitle = `Released: ${ commitDate ?. replace ( 'T' , ' ' ) } ` ;
35- }
36- } ) ;
37- }
3825 }
3926
4027 toggleMenu ( ) : void {
You can’t perform that action at this time.
0 commit comments