chore: 将 Impeccable 更新到 4.8.0

This commit is contained in:
2026-10-29 17:42:50 +08:00
parent a53ada10de
commit 9f44082c8a
22 changed files with 313 additions and 113 deletions
@@ -42,7 +42,10 @@
function createLiveBrowserSessionState({ prefix, storage, idFactory }) {
if (!prefix) throw new Error('prefix required');
const store = storage || root.localStorage;
let store = storage;
if (!store) {
try { store = root.localStorage; } catch { store = null; /* storage denied */ }
}
const makeId = idFactory || function () { return randomId8(); };
const sessionKey = prefix + '-session';
const handledKey = sessionKey + '-handled';