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

Handle load errors when config is not initialized #26

Merged
merged 5 commits into from
May 14, 2016

Conversation

bigtiger
Copy link
Contributor

Addresses #20

@bigtiger bigtiger force-pushed the issues-20-error-on-initial-load branch from 8818f30 to 8fb912c Compare May 14, 2016 02:33
.map(function(i) { return i.trim(); });
let css = generate_column_hiding_css(column_collection);
window.v1_column_hiding_style_el = add_css_to_document(css);
if (typeof items.columnsToHide != 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

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

If my understanding of chrome's storage API is correct, the { 'columnsToHide': '' } bit should ensure that items.columnsToHide is always defined inside the callback function (either as whatever was stored or as the fallback default of empty string), so I don't think the undefined check is needed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@BaseCase Agreed. Reverted those changes.

Also, you should try the version on the Chrome Web Store: https://chrome.google.com/webstore/detail/versionone-shot/ifljgacfkdomobnaeibimidndmblihoh

@bigtiger
Copy link
Contributor Author

Assuming 👍 from Casey's feedback.

@bigtiger bigtiger merged commit 8230d70 into master May 14, 2016
@bigtiger bigtiger deleted the issues-20-error-on-initial-load branch May 14, 2016 16:17
@BaseCase
Copy link
Contributor

retroactive 👍 :)

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.

2 participants