Fix remote control input.

This commit is contained in:
Jared Goodwin 2019-12-12 09:33:21 -08:00
parent 02f158088c
commit 702d5754fc
3 changed files with 10 additions and 9 deletions

View File

@ -46,7 +46,7 @@ export function AddOrUpdateDevice(device: Device) {
.replace("true", "<span class='fa fa-check-circle'></span>")
.replace("false", "<span class='fa fa-times'></span>")}</td>
<td>${device.DeviceName}</td>
<td>${device.Alias}</td>
<td>${device.Alias || ""}</td>
<td>${device.CurrentUser}</td>
<td>${new Date(device.LastOnline).toLocaleString()}</td>
<td>${device.Platform}</td>

View File

@ -5,7 +5,6 @@ import { RemoteControlMode } from "../Enums/RemoteControlMode.js";
var queryString = Utilities.ParseSearchString();
var rcBrowserSockets = new RCBrowserSockets();
export const RemoteControl = {
@ -16,7 +15,7 @@ export const RemoteControl = {
Mode: RemoteControlMode.None,
Init: () => {
UI.ApplyInputHandlers(rcBrowserSockets);
UI.ApplyInputHandlers(RemoteControl.RCBrowserSockets);
if (queryString["clientID"]) {
RemoteControl.Mode = RemoteControlMode.Unattended;

View File

@ -6,13 +6,15 @@ import { Sound } from "../Sound.js";
var signalR = window["signalR"];
type HubConnection = {
start: () => Promise<any>;
closedCallbacks: any[];
invoke: (...rest) => any;
stop: () => any;
}
export class RCBrowserSockets {
Connection = {
start: async () => { },
closedCallbacks: [],
invoke: (...rest) => { },
stop: () => { }
};
Connection: HubConnection;
Connect() {
this.Connection = new signalR.HubConnectionBuilder()