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 {ActiveRoomObserver} from "../ActiveRoomObserver";
|
||||||
import {Notifier} from "../Notifier";
|
import {Notifier} from "../Notifier";
|
||||||
import type {Renderer} from "react-dom";
|
import type {Renderer} from "react-dom";
|
||||||
|
import RightPanelStore from "../stores/RightPanelStore";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
|
@ -49,6 +50,7 @@ declare global {
|
||||||
singletonModalManager: ModalManager;
|
singletonModalManager: ModalManager;
|
||||||
mxSettingsStore: SettingsStore;
|
mxSettingsStore: SettingsStore;
|
||||||
mxNotifier: typeof Notifier;
|
mxNotifier: typeof Notifier;
|
||||||
|
mxRightPanelStore: RightPanelStore;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Document {
|
interface Document {
|
||||||
|
|
|
@ -223,3 +223,5 @@ export default class RightPanelStore extends Store<ActionPayload> {
|
||||||
return RightPanelStore.instance;
|
return RightPanelStore.instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.mxRightPanelStore = RightPanelStore.getSharedInstance();
|
||||||
|
|
Loading…
Reference in New Issue