-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Conversation
@@ -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;' + |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping on this comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Please check out the test error. |
1409cc2
to
1269cb6
Compare
PTAL |
3efba70
to
828c60b
Compare
PTAL |
LGTM |
LGTM |
JS Error body unhide should also support new boilerplate
#1414