gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.33k stars 461 forks source link

Feature - Use chrome.storage.local if a chrome packaged app #235

Open Ardenexal opened 8 years ago

Ardenexal commented 8 years ago

On a chrome packaged app localStorage doesn't exist instead you need to use chrome.storage.local. It would be great if ngStorage could use chrome.storage.local if it detects the chrome object exists

egilkh commented 8 years ago

Is it the same API and provides the same functionality as localStorage?

Ardenexal commented 8 years ago

same API just different starting point instead of window its chrome