export class Popup and Soud of Iframe Api

let become const in SoundManager
This commit is contained in:
DESKTOP-FMM8UI0\CLV 2021-05-07 17:03:07 +02:00
parent b79d76fc2e
commit e655edd9bd
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ class SoundManager {
}
soundPromise = new Promise<BaseSound>((res) => {
let sound = soundManager.get(soundUrl);
const sound = soundManager.get(soundUrl);
if (sound !== null) {
return res(sound);
}

View File

@ -62,7 +62,7 @@ interface ButtonDescriptor {
callback: ButtonClickedCallback,
}
class Popup {
export class Popup {
constructor(private id: number) {
}
@ -79,7 +79,7 @@ class Popup {
}
}
class Sound {
export class Sound {
constructor(private url: string) {
// TODO: send a "loadSound" event
window.parent.postMessage({