Compare commits

...

4 Commits

Author SHA1 Message Date
b
d2d82b19a4 Merge pull request 'fix(Offline): fixed 0.0.0.0 host' (#94) from offline-localhost-fix into staging
All checks were successful
Release to Staging / build_and_release (push) Successful in 1m4s
Reviewed-on: https://git.sigit.io/sig/it/pulls/94
Reviewed-by: b <b@4j.cx>
2024-05-29 14:09:52 +00:00
Yury
b27b27f067 chore: added comment 2024-05-29 17:08:38 +03:00
Yury
f041370c62 chore: added comment 2024-05-29 17:06:47 +03:00
Yury
7be98978dd fix(Offline): fixed 0.0.0.0 host 2024-05-29 17:03:00 +03:00

View File

@ -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()