diff src/app/app.module.ts @ 93:8f2b2aed0df1

Update cli config to conform to latest version, needed to move around my worker bootstrapping bodge. Angular-cli for some reason now includes global scripts as strings in the webpack bundle, and they are eval'ed. So TypeScript no longer gets compiled. So once again I chase the mouse, re-purposing the new polyfill field to compile and bundle externals.ts once more!
author Lucas Thompson <dev@lucas.im>
date Thu, 23 Feb 2017 22:15:52 +0000
parents f5072712ddf5
children edddb2a5cf10
line wrap: on
line diff
--- a/src/app/app.module.ts	Thu Feb 23 22:13:04 2017 +0000
+++ b/src/app/app.module.ts	Thu Feb 23 22:15:52 2017 +0000
@@ -12,7 +12,7 @@
 import { FeatureExtractionService } from "./services/feature-extraction/feature-extraction.service";
 import { FeatureExtractionMenuComponent } from "./feature-extraction-menu/feature-extraction-menu.component";
 
-function createAudioContext(): AudioContext {
+export function createAudioContext(): AudioContext {
   return new (
     (window as any).AudioContext
     || (window as any).webkitAudioContext
@@ -34,7 +34,7 @@
     MaterialModule
   ],
   providers: [
-    {provide: HTMLAudioElement, useValue: new Audio()}, // TODO use something more generic than HTMLAudioElement
+    {provide: HTMLAudioElement, useValue: new Audio() }, // TODO use something more generic than HTMLAudioElement
     {provide: 'AudioContext', useValue: createAudioContext()}, // use a string token, Safari doesn't seem to like AudioContext
     AudioPlayerService,
     FeatureExtractionService,