expose RightPanelStore in window

pull/21833/head
Michael Telatynski 2020-08-28 10:46:29 +01:00
parent 1479690ac4
commit 8b4250c142
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import SettingsStore from "../settings/SettingsStore";
import {ActiveRoomObserver} from "../ActiveRoomObserver";
import {Notifier} from "../Notifier";
import type {Renderer} from "react-dom";
import RightPanelStore from "../stores/RightPanelStore";
declare global {
interface Window {
@ -49,6 +50,7 @@ declare global {
singletonModalManager: ModalManager;
mxSettingsStore: SettingsStore;
mxNotifier: typeof Notifier;
mxRightPanelStore: RightPanelStore;
}
interface Document {

View File

@ -223,3 +223,5 @@ export default class RightPanelStore extends Store<ActionPayload> {
return RightPanelStore.instance;
}
}
window.mxRightPanelStore = RightPanelStore.getSharedInstance();