From adf4e65759da9d12d9d694fe99c7fddc1b46379e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 4 Nov 2016 19:52:39 +0100 Subject: [PATCH] expose api as window.secureApi (#3207) Former-commit-id: 6b1ca33b8da4ddd96efb28b879e568f713b5fb29 --- js/src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/src/index.js b/js/src/index.js index 9a4ad2e1a..966e2708e 100644 --- a/js/src/index.js +++ b/js/src/index.js @@ -59,6 +59,8 @@ const store = initStore(api); store.dispatch({ type: 'initAll', api }); store.dispatch(setApi(api)); +window.secureApi = api; + const routerHistory = useRouterHistory(createHashHistory)({}); ReactDOM.render(