Skip to content

Commit

Permalink
Sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
distler committed Dec 7, 2016
1 parent aaebba5 commit a9b039c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/javascripts/page_helper.js
Expand Up @@ -317,7 +317,7 @@ function initializeYoutubePlayer() {

function columnAlignShim() {
var mtables = document.querySelectorAll('mtable[columnalign]');
if (mtables[0].style) {
if (mtables[0] && mtables[0].style) {
for (var i = 0; i < mtables.length; i++) {
var mtable = mtables[i];
var colAligns = mtable.getAttribute('columnalign').split(/\s+/);
Expand All @@ -333,7 +333,7 @@ function columnAlignShim() {

function minMathWidth() {
var maths = document.querySelectorAll('math[display=block]');
if (maths[0].style) {
if (maths[0] && maths[0].style) {
for (var i = 0; i < maths.length; i++) {
var m = maths[i];
m.style.minWidth = m.firstElementChild.clientWidth;
Expand Down

0 comments on commit a9b039c

Please sign in to comment.