assets/js/just-the-docs.js in just-the-docs-0.6.0 vs assets/js/just-the-docs.js in just-the-docs-0.6.1

- old
+ new

@@ -74,10 +74,12 @@ // The page-specific <style> in the <head> is needed only when JS is disabled. // Moreover, it incorrectly overrides dynamic stylesheets set by setTheme(theme). // The page-specific stylesheet is assumed to have index 1 in the list of stylesheets. function disableHeadStyleSheet() { - document.styleSheets[1].disabled = true; + if (document.styleSheets[1]) { + document.styleSheets[1].disabled = true; + } } {%- if site.search_enabled != false %} // Site search