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

correct debugString if no manifest short_name found #1617

Merged
merged 1 commit into from
Feb 2, 2017
Merged

Conversation

brendankenny
Copy link
Member

fixes #1616

// Historically, Chrome recommended 12 chars as the maximum length to prevent truncation.
// See #69 for more discussion.
// https://developer.chrome.com/apps/manifest/name#short_name
const manifestValue = manifest.short_name.value || manifest.name.value || '';
isShortNameShortEnough = manifestValue && manifestValue.length <= suggestedLength;
isShortNameShortEnough = shortNameValue && shortNameValue.length <= suggestedLength;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: don't need the definedness check now

Copy link
Member Author

Choose a reason for hiding this comment

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

done

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.

False positive for manifest's short name length when it is missing.
3 participants