From dfb4a4f62aa16425fef79f5b93ca1605dd46dca7 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 29 May 2022 20:04:44 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/webstore.classes.webstore.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index db66233..e963263 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/webstore', - version: '2.0.2', + version: '2.0.3', description: 'high performance storage in the browser using indexed db' } diff --git a/ts/webstore.classes.webstore.ts b/ts/webstore.classes.webstore.ts index 22f6aaa..b7ee634 100644 --- a/ts/webstore.classes.webstore.ts +++ b/ts/webstore.classes.webstore.ts @@ -25,8 +25,7 @@ export class WebStore { const smartenv = new plugins.smartenv.Smartenv(); if (!smartenv.isBrowser) { - const fetch = await smartenv.getSafeNodeModule('fake-indexeddb/auto.js'); - globalThis.fetch = fetch.default; + await smartenv.getSafeNodeModule('fake-indexeddb/auto.js'); } this.db = await plugins.idb.openDB(this.options.dbName, 1, {