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

Login dialog done HTML page #1330

Merged
merged 1 commit into from
Jan 8, 2016
Merged

Conversation

dvoytenko
Copy link
Contributor

No description provided.

*/
buildStyles_() {
const nav = this.win.navigator;
const lang = nav.language || nav.userLanguage || 'en-US';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat. Probably makes sense to prefer a URL arg like "?hl=de", so pubs can chose to tell us the lang of the transaction.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I'll add the attribute and default to navigator.language when not specified.

@cramforce
Copy link
Member

LGTM

@dvoytenko
Copy link
Contributor Author

I added "hl" query parameter and also added additional fallback when no nodes match the selection.

dvoytenko added a commit that referenced this pull request Jan 8, 2016
Login dialog done HTML page
@dvoytenko dvoytenko merged commit 8cbcd77 into ampproject:master Jan 8, 2016
@dvoytenko dvoytenko deleted the access7 branch January 8, 2016 00:24
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

Successfully merging this pull request may close these issues.

3 participants