From 6b08cc6fb55cd3b96f19b29778523569dbc2e511 Mon Sep 17 00:00:00 2001 From: Piotr Najda <58721991+piotrnajda3000@users.noreply.github.com> Date: Wed, 4 Mar 2026 17:56:52 +0100 Subject: [PATCH] Storage should be supported when quota exceeded --- src/isSupported.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/isSupported.js b/src/isSupported.js index 56864ac..b2224cd 100644 --- a/src/isSupported.js +++ b/src/isSupported.js @@ -9,6 +9,10 @@ function hasStorage(name) { storage.removeItem(TEST_KEY); return true; } catch (e) { + // Storage is supported but the quota has been exceeded + if (e instanceof Error && e.name === "QuotaExceededError") { + return true; + } return false; } }