Merge pull request #15710 from kserin/master

Phonon: add global variable to window
This commit is contained in:
Ron Buckton
2017-04-07 15:24:19 -07:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ interface Document {
interface Window {
on(event: string, callback: (event: Phonon.PhononCustomWindowEvent) => void, useCapture?: boolean): void;
off(event: string, callback: (event: Phonon.PhononCustomWindowEvent) => void, useCapture?: boolean): void;
phonon: Phonon.Phonon;
}
interface Element {
on(event: string, callback: (event: any) => void, useCapture?: boolean): void;

View File

@@ -550,3 +550,4 @@ phonon.options({
});
setupHTML();
phonon.navigator().start();
window.phonon;