Skip to content

Commit 7b1be93

Browse files
author
noKid
committed
fix: ArrayBuffer binary type is now supported
1 parent 3de124f commit 7b1be93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-localForage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
} else {
114114
var deferred = $q.defer(),
115115
args = arguments,
116-
localCopy = typeof Blob !== 'undefined' && value instanceof Blob ? value : angular.copy(value);
116+
localCopy = typeof Blob !== 'undefined' && typeof ArrayBuffer !== 'undefined' && (value instanceof Blob || value instanceof ArrayBuffer) ? value : angular.copy(value);
117117

118118
//avoid $promises attributes from value objects, if present.
119119
if(angular.isObject(localCopy) && angular.isDefined(localCopy.$promise)) {

0 commit comments

Comments
 (0)