# HG changeset patch # User Lucas Thompson # Date 1487866911 0 # Node ID f5072712ddf51c0a2efe1f24b60921574a479b10 # Parent 4aa6b1266251c8ce7aca039df678e2e5cf444aba Resurrect the duck! diff -r 4aa6b1266251 -r f5072712ddf5 src/app/app.component.html --- a/src/app/app.component.html Thu Feb 23 16:13:38 2017 +0000 +++ b/src/app/app.component.html Thu Feb 23 16:21:51 2017 +0000 @@ -1,5 +1,5 @@ - + diff -r 4aa6b1266251 -r f5072712ddf5 src/app/app.component.ts --- a/src/app/app.component.ts Thu Feb 23 16:13:38 2017 +0000 +++ b/src/app/app.component.ts Thu Feb 23 16:21:51 2017 +0000 @@ -2,6 +2,8 @@ import {AudioPlayerService} from "./services/audio-player/audio-player.service"; import {FeatureExtractionService} from "./services/feature-extraction/feature-extraction.service"; import {ExtractorOutputInfo} from "./feature-extraction-menu/feature-extraction-menu.component"; +import {DomSanitizer} from '@angular/platform-browser'; +import {MdIconRegistry} from '@angular/material'; @Component({ selector: 'app-root', @@ -13,8 +15,14 @@ canExtract: boolean; constructor(private audioService: AudioPlayerService, - private piperService: FeatureExtractionService) { + private piperService: FeatureExtractionService, + private iconRegistry: MdIconRegistry, + private sanitizer: DomSanitizer) { this.canExtract = false; + iconRegistry.addSvgIcon( + 'duck', + sanitizer.bypassSecurityTrustResourceUrl('assets/duck.svg') + ); } onFileOpened(file: File) { diff -r 4aa6b1266251 -r f5072712ddf5 src/app/app.module.ts --- a/src/app/app.module.ts Thu Feb 23 16:13:38 2017 +0000 +++ b/src/app/app.module.ts Thu Feb 23 16:21:51 2017 +0000 @@ -31,7 +31,7 @@ BrowserModule, FormsModule, HttpModule, - MaterialModule.forRoot() + MaterialModule ], providers: [ {provide: HTMLAudioElement, useValue: new Audio()}, // TODO use something more generic than HTMLAudioElement