Compare commits
4 Commits
45cb9a2d70
...
d2d82b19a4
Author | SHA1 | Date | |
---|---|---|---|
d2d82b19a4 | |||
|
b27b27f067 | ||
|
f041370c62 | ||
|
7be98978dd |
@ -16,6 +16,13 @@ const App = () => {
|
|||||||
const authState = useSelector((state: State) => state.auth)
|
const authState = useSelector((state: State) => state.auth)
|
||||||
|
|
||||||
useEffect(() => {
|
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()
|
generateBunkerDelegatedKey()
|
||||||
|
|
||||||
const authController = new AuthController()
|
const authController = new AuthController()
|
||||||
|
Loading…
Reference in New Issue
Block a user