Skip to content

Commit 9066f61

Browse files
committed
Merge pull request #164 from ahelmel/feature/public-cookie-is-supported
Made the private function browserSupportsCookies public, see #163.
2 parents 5fc726c + a71d928 commit 9066f61

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular-local-storage
22
=====================
33

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

66
[![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)
77

@@ -27,6 +27,7 @@ An Angular module that gives you access to the browsers local storage, **v0.1.3*
2727
- [deriveKey](#derivekey)
2828
- [length](#length)
2929
- [cookie](#cookie)
30+
- [isSupported](#cookieissupported)
3031
- [set](#cookieset)
3132
- [get](#cookieget)
3233
- [remove](#cookieremove)
@@ -269,6 +270,18 @@ myApp.controller('MainCtrl', function($scope, localStorageService) {
269270
```
270271
##Cookie
271272
Deal with browser's cookies directly.
273+
##cookie.isSupported
274+
Checks if cookies are enabled in the browser.
275+
**Returns:** `Boolean`
276+
```js
277+
myApp.controller('MainCtrl', function($scope, localStorageService) {
278+
//...
279+
if(localStorageService.cookie.isSupported) {
280+
//...
281+
}
282+
//...
283+
});
284+
```
272285
###cookie.set
273286
Directly adds a value to cookies.<br/>
274287
**Note:** Typically used as a fallback if local storage is not supported.<br/>

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-local-storage",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"homepage": "http://gregpike.net/demos/angular-local-storage/demo.html",
55
"authors": [
66
"grevory <[email protected]>"

dist/angular-local-storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* An Angular module that gives you access to the browsers local storage
3-
* @version v0.1.3 - 2014-10-30
3+
* @version v0.1.4 - 2014-10-30
44
* @link https://github.com/grevory/angular-local-storage
55
* @author grevory <[email protected]>
66
* @license MIT License, http://www.opensource.org/licenses/MIT

dist/angular-local-storage.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-local-storage",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "An Angular module that gives you access to the browsers local storage",
55
"homepage": "https://github.com/grevory/angular-local-storage",
66
"main": "./dist/angular-local-storage.js",

0 commit comments

Comments
 (0)