Skip to content

Commit fe41926

Browse files
committed
Phonon: add global variable to window
1 parent 374e200 commit fe41926

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

types/phonon/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ interface Document {
190190
interface Window {
191191
on(event: string, callback: (event: Phonon.PhononCustomWindowEvent) => void, useCapture?: boolean): void;
192192
off(event: string, callback: (event: Phonon.PhononCustomWindowEvent) => void, useCapture?: boolean): void;
193+
phonon: Phonon.Phonon;
193194
}
194195
interface Element {
195196
on(event: string, callback: (event: any) => void, useCapture?: boolean): void;

types/phonon/phonon-tests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,3 +550,4 @@ phonon.options({
550550
});
551551
setupHTML();
552552
phonon.navigator().start();
553+
window.phonon;

0 commit comments

Comments
 (0)