Rxova
Skip to content

isStorageEventAvailable

function isStorageEventAvailable(): boolean;

Can we hear other tabs through the storage event?

Reading localStorage is itself what throws when storage is blocked — a sandboxed iframe, third-party cookies off — so the check has to happen inside a try, not around a property test. Availability is also not writability: Safari’s old private mode exposed the object and threw on every setItem.

boolean