Fix naming format errors

pull/21833/head
Jorik Schellekens 2020-07-20 20:02:21 +01:00
parent b3fa855bd8
commit c3ffbdbdbc
6 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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;
}
}

View File

@ -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() {

View File

@ -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;

View File

@ -245,4 +245,4 @@ export class IntegrationManagers {
}
// For debugging
window.mxIntegrationManagers = IntegrationManagers;
window.mx_IntegrationManagers = IntegrationManagers;

View File

@ -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() {