Skip to content

Commit

Permalink
Merge pull request #105 from egyptianbman/patch-1
Browse files Browse the repository at this point in the history
Check for document being in [0] key of $document
  • Loading branch information
grevory committed Aug 14, 2014
2 parents 2c57fdf + 7ac1e52 commit 0a256f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions angular-local-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ angularLocalStorage.provider('localStorageService', function() {
// When Angular's $document is not available
if (!$document) {
$document = document;
} else if ($document[0]) {
$document = $document[0];
}

// If there is a prefix set in the config lets use that with an appended period for readability
Expand Down

0 comments on commit 0a256f3

Please sign in to comment.