Skip to content

Commit 1797ed8

Browse files
committed
fixes
1 parent 8078fce commit 1797ed8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/cache-api-keyval.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cache-api-keyval",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "Browser Cache API key/value store with +50MB capacity, expiration and JSON object data-type storage.",
55
"author": {
66
"name": "info@optimization.team",

src/cache-api-keyval.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555

5656
// detect Cache API support
57-
if (!(caches instanceof CacheStorage)) {
57+
if (!("caches" in _root) || !(caches instanceof CacheStorage)) {
5858
print_error(nosupport_error);
5959
_root.CacheApiDB = _root.CacheApiDBFallback;
6060
} else {

0 commit comments

Comments
 (0)