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

JS Error body unhide should also support new boilerplate #1435

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

camelburrito
Copy link
Contributor

@@ -123,7 +123,10 @@ function compile(watch, shouldMinify) {
// If there is a sync JS error during initial load,
// at least try to unhide the body.
wrapper: 'try{<%= contents %>}catch(e){setTimeout(function(){' +
'document.body.style.opacity=1},1000);throw e};'
'document.body.style.opacity=1;' +
Copy link
Member

Choose a reason for hiding this comment

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

Please make a little var like:

var s=document.body.style; and then use it.

Copy link
Member

Choose a reason for hiding this comment

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

Ping on this comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@cramforce
Copy link
Member

Please check out the test error.

@camelburrito camelburrito force-pushed the bpbug branch 2 times, most recently from 1409cc2 to 1269cb6 Compare January 21, 2016 17:45
@camelburrito
Copy link
Contributor Author

PTAL

@camelburrito
Copy link
Contributor Author

PTAL

@jridgewell
Copy link
Contributor

LGTM

@cramforce
Copy link
Member

LGTM

camelburrito pushed a commit that referenced this pull request Jan 22, 2016
JS Error body unhide should also support new boilerplate
@camelburrito camelburrito merged commit 46297ca into ampproject:master Jan 22, 2016
@camelburrito camelburrito deleted the bpbug branch January 22, 2016 20:02
@qidonna qidonna mentioned this pull request Jan 14, 2021
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