From ad69f9c86b950cc84ca103e65824b9c9129d3999 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 31 Jan 2022 18:06:13 +0100 Subject: add support for testing with other browsers (especially Abrowser and Librewolf) There are still some spurious failures when running under those newer browsers. Those will be systematically investigated and fixed. --- common/indexeddb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/indexeddb.js') diff --git a/common/indexeddb.js b/common/indexeddb.js index 271dfce..f916162 100644 --- a/common/indexeddb.js +++ b/common/indexeddb.js @@ -56,7 +56,7 @@ let initial_data = ( const db_version = [1, 0, 0]; const nr_reductor = ([i, s], num) => [i - 1, s + num * 1024 ** i]; -const version_nr = ver => Array.reduce(ver.slice(0, 3), nr_reductor, [2, 0])[1]; +const version_nr = ver => ver.slice(0, 3).reduce(nr_reductor, [2, 0])[1]; const stores = [ ["files", {keyPath: "hash_key"}], -- cgit v1.2.3