mirror of https://github.com/vector-im/riot-web
expose RightPanelStore in window
parent
1479690ac4
commit
8b4250c142
|
@ -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 {
|
||||
|
|
|
@ -223,3 +223,5 @@ export default class RightPanelStore extends Store<ActionPayload> {
|
|||
return RightPanelStore.instance;
|
||||
}
|
||||
}
|
||||
|
||||
window.mxRightPanelStore = RightPanelStore.getSharedInstance();
|
||||
|
|
Loading…
Reference in New Issue