mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
expose RightPanelStore in window
This commit is contained in:
parent
1479690ac4
commit
8b4250c142
2
src/@types/global.d.ts
vendored
2
src/@types/global.d.ts
vendored
@ -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
Block a user