Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan to support chrome.storage in the future? #112

Open
lipis opened this issue May 15, 2015 · 0 comments
Open

Any plan to support chrome.storage in the future? #112

lipis opened this issue May 15, 2015 · 0 comments

Comments

@lipis
Copy link

lipis commented May 15, 2015

If you want to use local storage capabilities with Chrome App you can only use the chrome.storage.

According to the this answer is possible to figure out if the app is running as a chrome extension or not:

if (window.chrome && chrome.runtime && chrome.runtime.id) {
    // Code running in a Chrome extension (content script, background page, etc.)
}

So if detected then we shouldn't use any other storage capabilities. That would be great because porting existing apps that are using Amplify would be relatively easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant