Skip to content

Commit

Permalink
fix: Blob fix for IE9
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Dec 8, 2014
1 parent fcc1fea commit f377464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/angular-localForage.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
} else {
var deferred = $q.defer(),
args = arguments,
localCopy = angular.isDefined(Blob) && value instanceof Blob ? value : angular.copy(value);
localCopy = typeof Blob !== 'undefined' && value instanceof Blob ? value : angular.copy(value);

//avoid $promises attributes from value objects, if present.
if(angular.isObject(localCopy) && angular.isDefined(localCopy.$promise)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/angular-localForage.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ describe('Module: LocalForageModule', function() {
});

it('setItem should be able to store a Blob', function(done) {
if(typeof Bldob !== 'undefined') {
if(typeof Blob !== 'undefined') {
var interval = triggerDigests();

var aFileParts = ["<a id=\"a\"><b id=\"b\">hey!<\/b><\/a>"];
Expand Down

0 comments on commit f377464

Please sign in to comment.