diff --git a/src/tmpfile.ts b/src/tmpfile.ts index 9a5c151..32bedbb 100644 --- a/src/tmpfile.ts +++ b/src/tmpfile.ts @@ -39,6 +39,8 @@ let bindedUnloadEvt = false; // 'export' is for ease of testing export async function delMarkFiles() { + if (self.localStorage == null) return; + const opfsToolsExpires = 'OPFS_TOOLS_EXPIRES_TMP_FILES'; if (!bindedUnloadEvt) {