Switch global var to the store for easier debugging
							parent
							
								
									c4d85c457b
								
							
						
					
					
						commit
						c2bcdae8a9
					
				|  | @ -39,9 +39,9 @@ import {ModalWidgetStore} from "../stores/ModalWidgetStore"; | |||
| import { WidgetLayoutStore } from "../stores/widgets/WidgetLayoutStore"; | ||||
| import VoipUserMapper from "../VoipUserMapper"; | ||||
| import {SpaceStoreClass} from "../stores/SpaceStore"; | ||||
| import {VoiceRecording} from "../voice/VoiceRecording"; | ||||
| import TypingStore from "../stores/TypingStore"; | ||||
| import { EventIndexPeg } from "../indexing/EventIndexPeg"; | ||||
| import {VoiceRecordingStore} from "../stores/VoiceRecordingStore"; | ||||
| 
 | ||||
| declare global { | ||||
|     interface Window { | ||||
|  | @ -73,7 +73,7 @@ declare global { | |||
|         mxModalWidgetStore: ModalWidgetStore; | ||||
|         mxVoipUserMapper: VoipUserMapper; | ||||
|         mxSpaceStore: SpaceStoreClass; | ||||
|         mxVoiceRecorder: typeof VoiceRecording; | ||||
|         mxVoiceRecordingStore: VoiceRecordingStore; | ||||
|         mxTypingStore: TypingStore; | ||||
|         mxEventIndexPeg: EventIndexPeg; | ||||
|     } | ||||
|  |  | |||
|  | @ -78,3 +78,5 @@ export class VoiceRecordingStore extends AsyncStoreWithClient<IState> { | |||
|         return this.updateState({recording: null}); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| window.mxVoiceRecordingStore = VoiceRecordingStore.instance; | ||||
|  |  | |||
|  | @ -315,5 +315,3 @@ export class VoiceRecording extends EventEmitter implements IDestroyable { | |||
|         return this.mxc; | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| window.mxVoiceRecorder = VoiceRecording; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Travis Ralston
						Travis Ralston