localForage incorrectly identifies Safari 10.1+ as having broken IndexedDB when the fetch function is…
localForage incorrectly identifies Safari 10.1+ as having broken IndexedDB when the fetch function is…: a task in LegoFlow-SWE (Harbor dataset). The root cause is that the IndexedDB validity check uses the following detection: js var hasFetch = typeof fetch === 'function' &&…
The task
The root cause is that the IndexedDB validity check uses the following detection: ```js var hasFetch = typeof fetch === 'function' && fetch.toString().indexOf('[native code') !== -1; ``` If `fetch` has been replaced, `hasFetch` evaluates to `false`, so Safari is considered buggy even on versions where IndexedDB works…
Part of Lego-X/LegoFlow-SWE.