fix(Offline): fixed 0.0.0.0 host #94

Merged
b merged 3 commits from offline-localhost-fix into staging 2024-05-29 14:09:52 +00:00
Showing only changes of commit b27b27f067 - Show all commits

View File

@ -18,6 +18,8 @@ const App = () => {
useEffect(() => { useEffect(() => {
if (window.location.hostname === '0.0.0.0') { if (window.location.hostname === '0.0.0.0') {
// A change of the host is needed to make library available in windows object // 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' window.location.hostname = 'localhost'
} }