Restoring WA object in the iframe_api.ts file to avoid breaking compatibility

The WA object was missing in window otherwise because window.d.ts was not bundled in the package.
This commit is contained in:
David Négrier
2022-03-23 22:27:06 +01:00
parent 87412c3400
commit 38847afebf
5 changed files with 149 additions and 168 deletions
+7
View File
@@ -1,5 +1,12 @@
import { isSilentStore, requestedCameraState, requestedMicrophoneState } from "../../Stores/MediaStore";
import { get } from "svelte/store";
import { WorkAdventureDesktopApi } from "@wa-preload-app";
declare global {
interface Window {
WAD: WorkAdventureDesktopApi;
}
}
class DesktopApi {
isSilent: boolean = false;