safari-14-idb-fix
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -10,3 +10,3 @@ 'use strict'; | ||
function idbReady() { | ||
var isSafari = /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent); // No point putting other browsers through this mess. | ||
var isSafari = !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent); // No point putting other browsers through this mess. | ||
@@ -13,0 +13,0 @@ if (!isSafari) return Promise.resolve(); |
@@ -10,3 +10,4 @@ 'use strict'; | ||
function idbReady() { | ||
const isSafari = /Safari\//.test(navigator.userAgent) && | ||
const isSafari = !navigator.userAgentData && | ||
/Safari\//.test(navigator.userAgent) && | ||
!/Chrom(e|ium)\//.test(navigator.userAgent); | ||
@@ -13,0 +14,0 @@ // No point putting other browsers through this mess. |
@@ -8,3 +8,3 @@ /** | ||
function idbReady() { | ||
var isSafari = /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent); // No point putting other browsers through this mess. | ||
var isSafari = !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent); // No point putting other browsers through this mess. | ||
@@ -11,0 +11,0 @@ if (!isSafari) return Promise.resolve(); |
@@ -8,3 +8,4 @@ /** | ||
function idbReady() { | ||
const isSafari = /Safari\//.test(navigator.userAgent) && | ||
const isSafari = !navigator.userAgentData && | ||
/Safari\//.test(navigator.userAgent) && | ||
!/Chrom(e|ium)\//.test(navigator.userAgent); | ||
@@ -11,0 +12,0 @@ // No point putting other browsers through this mess. |
@@ -1,1 +0,1 @@ | ||
var idbReady=function(){"use strict";return function(){var e;return/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)?new Promise((function(n){var r=function(){return indexedDB.databases().finally(n)};e=setInterval(r,100),r()})).finally((function(){return clearInterval(e)})):Promise.resolve()}}(); | ||
var idbReady=function(){"use strict";return function(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)?new Promise((function(n){var r=function(){return indexedDB.databases().finally(n)};e=setInterval(r,100),r()})).finally((function(){return clearInterval(e)})):Promise.resolve()}}(); |
@@ -1,1 +0,1 @@ | ||
var idbReady=function(){"use strict";return function(){if(!(/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)))return Promise.resolve();let e;return new Promise((t=>{const r=()=>indexedDB.databases().finally(t);e=setInterval(r,100),r()})).finally((()=>clearInterval(e)))}}(); | ||
var idbReady=function(){"use strict";return function(){if(!(!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)))return Promise.resolve();let e;return new Promise((t=>{const r=()=>indexedDB.databases().finally(t);e=setInterval(r,100),r()})).finally((()=>clearInterval(e)))}}(); |
{ | ||
"name": "safari-14-idb-fix", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Working around a Safari 14 IndexedDB bug", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/jakearchibald/safari-14-idb-fix", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23621
118