Skip to content

Commit

Permalink
Fix IE driver support bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Oct 22, 2014
1 parent 61825f7 commit 8b1094e
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = exports = function(grunt) {
banner:
'/*!\n' +
' localForage -- Offline Storage, Improved\n' +
' Version 1.1.0\n' +
' Version 1.1.1\n' +
' http://mozilla.github.io/localForage\n' +
' (c) 2013-2014 Mozilla, Apache License 2.0\n' +
'*/\n'
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "localforage",
"version": "1.1.0",
"version": "1.1.1",
"main": [
"dist/localforage.js"
],
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "localforage",
"version": "1.1.0",
"version": "1.1.1",
"dependencies": {
"then/promise": "5.0.0"
},
Expand Down
14 changes: 7 additions & 7 deletions dist/localforage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
localForage -- Offline Storage, Improved
Version 1.1.0
Version 1.1.1
http://mozilla.github.io/localForage
(c) 2013-2014 Mozilla, Apache License 2.0
*/
Expand Down Expand Up @@ -2135,8 +2135,8 @@ requireModule('promise/polyfill').polyfill();
// as Safari. Oh the lulz...
if (typeof self.openDatabase !== 'undefined' && self.navigator &&
self.navigator.userAgent &&
/Safari/.test(navigator.userAgent) &&
!/Chrome/.test(navigator.userAgent)) {
/Safari/.test(self.navigator.userAgent) &&
!/Chrome/.test(self.navigator.userAgent)) {
return false;
}
try {
Expand All @@ -2146,17 +2146,17 @@ requireModule('promise/polyfill').polyfill();
// have older IndexedDB specs; if this isn't available
// their IndexedDB is too old for us to use.
// (Replaces the onupgradeneeded test.)
typeof IDBKeyRange === 'function';
typeof self.IDBKeyRange !== 'undefined';
} catch (e) {
return false;
}
})();

result[DriverType.LOCALSTORAGE] = !!(function() {
try {
return (localStorage &&
('setItem' in localStorage) &&
(localStorage.setItem));
return (self.localStorage &&
('setItem' in self.localStorage) &&
(self.localStorage.setItem));
} catch (e) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/localforage.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/localforage.nopromises.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
localForage -- Offline Storage, Improved
Version 1.1.0
Version 1.1.1
http://mozilla.github.io/localForage
(c) 2013-2014 Mozilla, Apache License 2.0
*/
Expand Down Expand Up @@ -1452,8 +1452,8 @@
// as Safari. Oh the lulz...
if (typeof self.openDatabase !== 'undefined' && self.navigator &&
self.navigator.userAgent &&
/Safari/.test(navigator.userAgent) &&
!/Chrome/.test(navigator.userAgent)) {
/Safari/.test(self.navigator.userAgent) &&
!/Chrome/.test(self.navigator.userAgent)) {
return false;
}
try {
Expand All @@ -1463,17 +1463,17 @@
// have older IndexedDB specs; if this isn't available
// their IndexedDB is too old for us to use.
// (Replaces the onupgradeneeded test.)
typeof IDBKeyRange === 'function';
typeof self.IDBKeyRange !== 'undefined';
} catch (e) {
return false;
}
})();

result[DriverType.LOCALSTORAGE] = !!(function() {
try {
return (localStorage &&
('setItem' in localStorage) &&
(localStorage.setItem));
return (self.localStorage &&
('setItem' in self.localStorage) &&
(self.localStorage.setItem));
} catch (e) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/localforage.nopromises.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"storage",
"websql"
],
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/mozilla/localForage",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion site/localforage.min.js

Large diffs are not rendered by default.

0 comments on commit 8b1094e

Please sign in to comment.