Added unwrapping of the jquery encapsulated $document variable

See
http://www.bennadel.com/blog/2630-accessing-document-properties-in-angularjs.htm
revert-117-master
Sebastian Gronewold 10 years ago
parent d08649f426
commit 330fc3f28b

@ -75,6 +75,10 @@ angularLocalStorage.provider('localStorageService', function() {
// When Angular's $document is not available
if (!$document) {
$document = document;
} else {
// unwrapping the jquery encapsulated document to access cookies
// (see http://www.bennadel.com/blog/2630-accessing-document-properties-in-angularjs.htm)
$document = $document[0];
}
// If there is a prefix set in the config lets use that with an appended period for readability