Index: chrome/renderer/resources/neterror.js |
diff --git a/chrome/renderer/resources/neterror.js b/chrome/renderer/resources/neterror.js |
index 14117c4804925bbe1dbda8ebf79adc392e7eba92..ae6efae94ef231530cd3efbc1c3cf453bc608dc3 100644 |
--- a/chrome/renderer/resources/neterror.js |
+++ b/chrome/renderer/resources/neterror.js |
@@ -126,5 +126,18 @@ function setButtonLayout() { |
staleLoadButton.style.display == 'none') { |
detailsButton.classList.add('singular'); |
} |
+ |
+ // Hide the details button if there are no details to show. |
+ if (templateData && templateData.summary && !templateData.summary.msg) { |
+ document.getElementById('details-button').hidden = true; |
+ document.getElementById('help-box-outer').style.display = 'block'; |
+ } |
} |
-document.addEventListener('DOMContentLoaded', setButtonLayout); |
+ |
+document.addEventListener('DOMContentLoaded', function() { |
+ setButtonLayout(); |
+ if (document.querySelector('.icon-offline')) { |
+ document.body.classList.add('offline'); |
+ new Runner('.interstitial-wrapper'); |
+ } |
+}); |