GitXplorerGitXplorer
j

safari-14-idb-fix

public
45 stars
12 forks
2 issues

Commits

List of commits on branch main.
Unverified
2a9084feb17a1226a5aed0fd3f3d3a49c5b3e9eb

3.0.0

jjakearchibald committed 3 years ago
Unverified
83b6e9a29d9a7e2eda1c1f61854342bea9b31b74

Updating docs

jjakearchibald committed 3 years ago
Unverified
ae196130f8a4ab994e306f5363a29b8a22c38ed0

Only minify the iife

jjakearchibald committed 3 years ago
Verified
5b1f50d8ff954b1ee1ea748a47575b2b0477a027

Simplify package by removing unnecessary syntax variants. (#8)

ddevelopit committed 3 years ago
Unverified
688f6824fee9315fa55ee3aa3283050d467bcbd9

2.0.3

jjakearchibald committed 3 years ago
Unverified
948539f52757278973903c77d71c64521c9298f1

Bug in main export

jjakearchibald committed 3 years ago

README

The README file for this repository.

Safari 14 IndexedDB fix

Safari on macOS Big Sur 11.4 and iOS 14.6 has a nasty bug where IndexedDB requests get lost and never resolve. The issue was fixed in Safari 14.7.

This library (well, function) works around the issue and tells you when IndexedDB is actually available.

To install:

npm i safari-14-idb-fix

To use:

import idbReady from 'safari-14-idb-fix';

idbReady().then(() => {
  // Safari has definitely figured out where IndexedDB is.
  // You can use IndexedDB as usual.
});

All bundles

A modern build tool will handle the above example fine, but if you need a specific build:

  • safari-14-idb-fix/dist/index.js EcmaScript module.
  • safari-14-idb-fix/dist/index.cjs CommonJS module.
  • safari-14-idb-fix/dist/iife.min.js Minified plain JS, which creates an idbReady global.