mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Move all status/alert dialogs into the Left Pane
This commit is contained in:
12
ts/shims/socketStatus.ts
Normal file
12
ts/shims/socketStatus.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
interface ShimmedWindow extends Window {
|
||||
getSocketStatus: () => number;
|
||||
}
|
||||
|
||||
const unknownWindow = window as unknown;
|
||||
const shimmedWindow = unknownWindow as ShimmedWindow;
|
||||
|
||||
export function getSocketStatus() {
|
||||
const { getSocketStatus: getMessageReceiverStatus } = shimmedWindow;
|
||||
|
||||
return getMessageReceiverStatus();
|
||||
}
|
||||
Reference in New Issue
Block a user