Fix naming format errors
parent
b3fa855bd8
commit
c3ffbdbdbc
|
@ -39,8 +39,8 @@ declare global {
|
|||
mx_RebrandListener: RebrandListener;
|
||||
mx_RoomListStore: RoomListStoreClass;
|
||||
mx_RoomListLayoutStore: RoomListLayoutStore;
|
||||
mxPlatformPeg: PlatformPeg;
|
||||
mxIntegrationManagers: typeof IntegrationManagers;
|
||||
mx_PlatformPeg: PlatformPeg;
|
||||
mx_IntegrationManagers: typeof IntegrationManagers;
|
||||
}
|
||||
|
||||
// workaround for https://github.com/microsoft/TypeScript/issues/30933
|
||||
|
|
|
@ -621,9 +621,9 @@ export default class ContentMessages {
|
|||
}
|
||||
|
||||
static sharedInstance() {
|
||||
if (window.mxContentMessages === undefined) {
|
||||
window.mxContentMessages = new ContentMessages();
|
||||
if (window.mx_ContentMessages === undefined) {
|
||||
window.mx_ContentMessages = new ContentMessages();
|
||||
}
|
||||
return window.mxContentMessages;
|
||||
return window.mx_ContentMessages;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,8 +48,8 @@ export default class DeviceListener {
|
|||
private displayingToastsForDeviceIds = new Set<string>();
|
||||
|
||||
static sharedInstance() {
|
||||
if (!window.mxDeviceListener) window.mxDeviceListener = new DeviceListener();
|
||||
return window.mxDeviceListener;
|
||||
if (!window.mx_DeviceListener) window.mx_DeviceListener = new DeviceListener();
|
||||
return window.mx_DeviceListener;
|
||||
}
|
||||
|
||||
start() {
|
||||
|
|
|
@ -45,7 +45,7 @@ export class PlatformPeg {
|
|||
}
|
||||
}
|
||||
|
||||
if (!window.mxPlatformPeg) {
|
||||
window.mxPlatformPeg = new PlatformPeg();
|
||||
if (!window.mx_PlatformPeg) {
|
||||
window.mx_PlatformPeg = new PlatformPeg();
|
||||
}
|
||||
export default window.mxPlatformPeg;
|
||||
export default window.mx_PlatformPeg;
|
||||
|
|
|
@ -245,4 +245,4 @@ export class IntegrationManagers {
|
|||
}
|
||||
|
||||
// For debugging
|
||||
window.mxIntegrationManagers = IntegrationManagers;
|
||||
window.mx_IntegrationManagers = IntegrationManagers;
|
||||
|
|
|
@ -37,8 +37,8 @@ export default class ToastStore extends EventEmitter {
|
|||
private countSeen = 0;
|
||||
|
||||
static sharedInstance() {
|
||||
if (!window.mxToastStore) window.mxToastStore = new ToastStore();
|
||||
return window.mxToastStore;
|
||||
if (!window.mx_ToastStore) window.mx_ToastStore = new ToastStore();
|
||||
return window.mx_ToastStore;
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
|
Loading…
Reference in New Issue