diff --git a/themes/daux/js/daux.js b/themes/daux/js/daux.js index 7dcbcb3..9633977 100644 --- a/themes/daux/js/daux.js +++ b/themes/daux/js/daux.js @@ -108,7 +108,7 @@ $(function () { function onResize() { //Fix GitHub Ribbon overlapping Scrollbar var a = $('article'); - if (ribbon.length) { + if (ribbon.length && a.length) { if (a[0] && a[0].scrollHeight > $('.right-column').height()) { ribbon[0].style.right = '16px'; } else {