From a5839b8c71246a7794e311f9403e8e1ab052677b Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 1 Sep 2019 21:41:05 +0200 Subject: [PATCH] Making it running for Windows (Part 2b) --- modules/renderer/audio/AudioPlayer.ts | 2 +- modules/renderer/audio/AudioRecorder.ts | 2 +- modules/renderer/connection/FileTransfer.ts | 4 ++-- modules/renderer/connection/ServerConnection.ts | 2 +- modules/renderer/dns/dns_resolver.ts | 2 +- modules/renderer/ppt.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/renderer/audio/AudioPlayer.ts b/modules/renderer/audio/AudioPlayer.ts index 9aeb886..7bb6f38 100644 --- a/modules/renderer/audio/AudioPlayer.ts +++ b/modules/renderer/audio/AudioPlayer.ts @@ -118,4 +118,4 @@ namespace audio.player { } } -Object.assign(window["audio"] || (window["audio"] = {}), audio); \ No newline at end of file +Object.assign(window["audio"] || (window["audio"] = {} as any), audio); \ No newline at end of file diff --git a/modules/renderer/audio/AudioRecorder.ts b/modules/renderer/audio/AudioRecorder.ts index c4ef943..f31070a 100644 --- a/modules/renderer/audio/AudioRecorder.ts +++ b/modules/renderer/audio/AudioRecorder.ts @@ -505,5 +505,5 @@ export namespace _audio.recorder { } } -Object.assign(window["audio"] || (window["audio"] = {}), _audio); +Object.assign(window["audio"] || (window["audio"] = {} as any), _audio); _audio.recorder.devices(); /* query devices */ \ No newline at end of file diff --git a/modules/renderer/connection/FileTransfer.ts b/modules/renderer/connection/FileTransfer.ts index 449695c..05d9f12 100644 --- a/modules/renderer/connection/FileTransfer.ts +++ b/modules/renderer/connection/FileTransfer.ts @@ -167,7 +167,7 @@ namespace _transfer { })); } - private try_put(data: FormData, url: string): Promise { + try_put(data: FormData, url: string): Promise { throw "what the hell?"; } } @@ -183,4 +183,4 @@ namespace _transfer { } } -Object.assign(window["transfer"] || (window["transfer"] = {}), _transfer); \ No newline at end of file +Object.assign(window["transfer"] || (window["transfer"] = {} as any), _transfer); \ No newline at end of file diff --git a/modules/renderer/connection/ServerConnection.ts b/modules/renderer/connection/ServerConnection.ts index 0466680..14025ef 100644 --- a/modules/renderer/connection/ServerConnection.ts +++ b/modules/renderer/connection/ServerConnection.ts @@ -315,4 +315,4 @@ export namespace _connection { console.log("Call to destroy a server connection"); } } -Object.assign(window["connection"] || (window["connection"] = {}), _connection); \ No newline at end of file +Object.assign(window["connection"] || (window["connection"] = {} as any), _connection); \ No newline at end of file diff --git a/modules/renderer/dns/dns_resolver.ts b/modules/renderer/dns/dns_resolver.ts index 329f2b2..ca54d2f 100644 --- a/modules/renderer/dns/dns_resolver.ts +++ b/modules/renderer/dns/dns_resolver.ts @@ -242,4 +242,4 @@ namespace _dns { dns_handler.setServers(["8.8.8.8", "8.8.8.4", "1.1.1.1"]); } -Object.assign(window["dns"] || (window["dns"] = {}), _dns); \ No newline at end of file +Object.assign(window["dns"] || (window["dns"] = {} as any), _dns); \ No newline at end of file diff --git a/modules/renderer/ppt.ts b/modules/renderer/ppt.ts index 4f0a3d8..d3edd14 100644 --- a/modules/renderer/ppt.ts +++ b/modules/renderer/ppt.ts @@ -130,5 +130,5 @@ namespace _ppt { return current_state.special[code]; } } -Object.assign(window["ppt"] || (window["ppt"] = {}), _ppt); +Object.assign(window["ppt"] || (window["ppt"] = {} as any), _ppt); console.dir(_ppt); \ No newline at end of file