Skip to content Skip to sidebar Skip to footer

Why Is Navigator.storage Undefined In Latest Chrome?

I'm trying to use navigator.storage on http://0.0.0.0:5000 while developing locally, but navigator.storage is undefined. When/why can navigator.storage be undefined? I'm in Chrome

Solution 1:

As per @Ry-'s comment, using http://localhost:5000 or http://127.0.0.1:5000 instead of http://0.0.0.0:5000 does the trick.

For some reason the browser decides to make navigator.storage unavailable when visiting a URL on http://0.0.0.0.

Solution 2:

I was simply not resolving the promise properly in the Chrome console:

await navigator.storage.estimate()

Post a Comment for "Why Is Navigator.storage Undefined In Latest Chrome?"