mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Fix remote control input.
This commit is contained in:
parent
02f158088c
commit
702d5754fc
@ -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>
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user