Fix naming format errors

This commit is contained in:
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_RebrandListener: RebrandListener;
mx_RoomListStore: RoomListStoreClass; mx_RoomListStore: RoomListStoreClass;
mx_RoomListLayoutStore: RoomListLayoutStore; mx_RoomListLayoutStore: RoomListLayoutStore;
mxPlatformPeg: PlatformPeg; mx_PlatformPeg: PlatformPeg;
mxIntegrationManagers: typeof IntegrationManagers; mx_IntegrationManagers: typeof IntegrationManagers;
} }
// workaround for https://github.com/microsoft/TypeScript/issues/30933 // workaround for https://github.com/microsoft/TypeScript/issues/30933

View file

@ -621,9 +621,9 @@ export default class ContentMessages {
} }
static sharedInstance() { static sharedInstance() {
if (window.mxContentMessages === undefined) { if (window.mx_ContentMessages === undefined) {
window.mxContentMessages = new ContentMessages(); 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>(); private displayingToastsForDeviceIds = new Set<string>();
static sharedInstance() { static sharedInstance() {
if (!window.mxDeviceListener) window.mxDeviceListener = new DeviceListener(); if (!window.mx_DeviceListener) window.mx_DeviceListener = new DeviceListener();
return window.mxDeviceListener; return window.mx_DeviceListener;
} }
start() { start() {

View file

@ -45,7 +45,7 @@ export class PlatformPeg {
} }
} }
if (!window.mxPlatformPeg) { if (!window.mx_PlatformPeg) {
window.mxPlatformPeg = new 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 // For debugging
window.mxIntegrationManagers = IntegrationManagers; window.mx_IntegrationManagers = IntegrationManagers;

View file

@ -37,8 +37,8 @@ export default class ToastStore extends EventEmitter {
private countSeen = 0; private countSeen = 0;
static sharedInstance() { static sharedInstance() {
if (!window.mxToastStore) window.mxToastStore = new ToastStore(); if (!window.mx_ToastStore) window.mx_ToastStore = new ToastStore();
return window.mxToastStore; return window.mx_ToastStore;
} }
reset() { reset() {