Skip to content

Commit

Permalink
Fix #169: Replace UA sniff with feature detect to fix tests in Edge
Browse files Browse the repository at this point in the history
Resolves #170.

(cherry picked from commit d6ef577)
  • Loading branch information
maier49 authored and Kenneth G. Franqueiro committed Jan 8, 2016
1 parent 09f23b7 commit 214233f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/LocalDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ define([
options = undefined;
}
return function () {
if (options && options.multi && has('trident')) {
// sadly, IE doesn't support multiEntry yet
return;
if (options && options.multi) {
try {
IDBKeyRange.only([ 1 ]);
} catch (error) {
// If we land here, we're in IE or Edge and multiEntry is not supported
return;
}
}
var i = 0;
var collection = numberStore.filter(filter, options);
Expand Down

0 comments on commit 214233f

Please sign in to comment.