made the private function browserSupportsCookies public

master
Arthur Helmel 10 years ago
parent 5fc726c19c
commit a71d928d0e

@ -1,7 +1,7 @@
angular-local-storage 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) [![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)
@ -27,6 +27,7 @@ An Angular module that gives you access to the browsers local storage, **v0.1.3*
- [deriveKey](#derivekey) - [deriveKey](#derivekey)
- [length](#length) - [length](#length)
- [cookie](#cookie) - [cookie](#cookie)
- [isSupported](#cookieissupported)
- [set](#cookieset) - [set](#cookieset)
- [get](#cookieget) - [get](#cookieget)
- [remove](#cookieremove) - [remove](#cookieremove)
@ -269,6 +270,18 @@ myApp.controller('MainCtrl', function($scope, localStorageService) {
``` ```
##Cookie ##Cookie
Deal with browser's cookies directly. 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 ###cookie.set
Directly adds a value to cookies.<br/> Directly adds a value to cookies.<br/>
**Note:** Typically used as a fallback if local storage is not supported.<br/> **Note:** Typically used as a fallback if local storage is not supported.<br/>

@ -1,6 +1,6 @@
{ {
"name": "angular-local-storage", "name": "angular-local-storage",
"version": "0.1.3", "version": "0.1.4",
"homepage": "http://gregpike.net/demos/angular-local-storage/demo.html", "homepage": "http://gregpike.net/demos/angular-local-storage/demo.html",
"authors": [ "authors": [
"grevory <greg@gregpike.ca>" "grevory <greg@gregpike.ca>"

@ -1,6 +1,6 @@
/** /**
* An Angular module that gives you access to the browsers local storage * 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 * @link https://github.com/grevory/angular-local-storage
* @author grevory <greg@gregpike.ca> * @author grevory <greg@gregpike.ca>
* @license MIT License, http://www.opensource.org/licenses/MIT * @license MIT License, http://www.opensource.org/licenses/MIT

@ -1,6 +1,6 @@
/** /**
* An Angular module that gives you access to the browsers local storage * 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 * @link https://github.com/grevory/angular-local-storage
* @author grevory <greg@gregpike.ca> * @author grevory <greg@gregpike.ca>
* @license MIT License, http://www.opensource.org/licenses/MIT * @license MIT License, http://www.opensource.org/licenses/MIT

@ -1,6 +1,6 @@
{ {
"name": "angular-local-storage", "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", "description": "An Angular module that gives you access to the browsers local storage",
"homepage": "https://github.com/grevory/angular-local-storage", "homepage": "https://github.com/grevory/angular-local-storage",
"main": "./dist/angular-local-storage.js", "main": "./dist/angular-local-storage.js",