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

undefined function when using csp version #107

Closed
fredtma opened this issue Mar 28, 2015 · 3 comments
Closed

undefined function when using csp version #107

fredtma opened this issue Mar 28, 2015 · 3 comments

Comments

@fredtma
Copy link

fredtma commented Mar 28, 2015

I have used app-router with polymer on a web app.
Building the chrome app with the chrome dev tool, I need to use the csp version but this fails with the below error.
screenshot 2015-03-28 at 03 07 32

@fredtma
Copy link
Author

fredtma commented Mar 28, 2015

It seems like window.history.pushState && window.history.replaceState are not defined in Chrome Apps and that is what causing the issue.
Has any ever encounter this and solved it?
screenshot 2015-03-28 at 10 47 53

@erikringsmuth
Copy link
Owner

Interesting... it looks like Chrome disable window.history altogether.
https://developer.chrome.com/apps/app_deprecated

It looks like Backbone.js has the same issue.
jashkenas/backbone#3112

Maybe there's a polyfill that'll work around it but I'm not sure.

@jmalonzo
Copy link
Collaborator

@fredtma Hi! Were you able to find a workaround for this? I'm not sure how we can replace window.history but if you found a workaround please let us know. Closing this for now.

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

3 participants