diff --git a/src/App.tsx b/src/App.tsx index 149bddb..8956df1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,6 +16,13 @@ const App = () => { const authState = useSelector((state: State) => state.auth) useEffect(() => { + if (window.location.hostname === '0.0.0.0') { + // A change of the host is needed to make library available in windows object + // the app can't encrypt files without the crypto library + // which is only available on https or localhost + window.location.hostname = 'localhost' + } + generateBunkerDelegatedKey() const authController = new AuthController()