ui: mount store to window

This commit is contained in:
undefined committed 2022-11-16 15:02:11 +08:00
1 parent defa848c98
commit 0f7072e432
1 file changed
+1
@@ -141,6 +141,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
const { default: ScratchpadReducer } = await import('../components/scratchpad/reducers');
const { Provider, store } = await loadReactRedux(ScratchpadReducer);
window.store = store;
const sock = new WebSocket(UiContext.ws_prefix + UiContext.pretestConnUrl);
sock.onmessage = (message) => {
const msg = JSON.parse(message.data);