export class Popup and Soud of Iframe Api
let become const in SoundManager
This commit is contained in:
parent
b79d76fc2e
commit
e655edd9bd
@ -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);
|
||||
}
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user