Skip to content

Commit

Permalink
Merge pull request #164 from ahelmel/feature/public-cookie-is-supported
Browse files Browse the repository at this point in the history
Made the private function browserSupportsCookies public, see #163.
  • Loading branch information
a8m committed Oct 30, 2014
2 parents 5fc726c + a71d928 commit 9066f61
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular-local-storage
=====================

An Angular module that gives you access to the browsers local storage, **v0.1.3**
An Angular module that gives you access to the browsers local storage, **v0.1.4**

[![Build Status](https://secure.travis-ci.org/grevory/angular-local-storage.png?branch=master)](https://travis-ci.org/grevory/) [![Coverage Status](https://img.shields.io/coveralls/grevory/angular-local-storage.svg)](https://coveralls.io/r/grevory/angular-local-storage?branch=master)

Expand All @@ -27,6 +27,7 @@ An Angular module that gives you access to the browsers local storage, **v0.1.3*
- [deriveKey](#derivekey)
- [length](#length)
- [cookie](#cookie)
- [isSupported](#cookieissupported)
- [set](#cookieset)
- [get](#cookieget)
- [remove](#cookieremove)
Expand Down Expand Up @@ -269,6 +270,18 @@ myApp.controller('MainCtrl', function($scope, localStorageService) {
```
##Cookie
Deal with browser's cookies directly.
##cookie.isSupported
Checks if cookies are enabled in the browser.
**Returns:** `Boolean`
```js
myApp.controller('MainCtrl', function($scope, localStorageService) {
//...
if(localStorageService.cookie.isSupported) {
//...
}
//...
});
```
###cookie.set
Directly adds a value to cookies.<br/>
**Note:** Typically used as a fallback if local storage is not supported.<br/>
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": "angular-local-storage",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "http://gregpike.net/demos/angular-local-storage/demo.html",
"authors": [
"grevory <greg@gregpike.ca>"
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-local-storage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* An Angular module that gives you access to the browsers local storage
* @version v0.1.3 - 2014-10-30
* @version v0.1.4 - 2014-10-30
* @link https://github.com/grevory/angular-local-storage
* @author grevory <greg@gregpike.ca>
* @license MIT License, http://www.opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-local-storage.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-local-storage",
"version": "0.1.3",
"version": "0.1.4",
"description": "An Angular module that gives you access to the browsers local storage",
"homepage": "https://github.com/grevory/angular-local-storage",
"main": "./dist/angular-local-storage.js",
Expand Down

0 comments on commit 9066f61

Please sign in to comment.