From 781dd2ff73b14191b103f5dcd3eab3b5133a0ecc Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Mon, 24 Feb 2020 12:24:42 -0600 Subject: [PATCH] Fix null error in wrapTables() --- Shared/Article Rendering/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Article Rendering/main.js b/Shared/Article Rendering/main.js index 403e5bdb1..d5751a1b3 100644 --- a/Shared/Article Rendering/main.js +++ b/Shared/Article Rendering/main.js @@ -35,7 +35,7 @@ function convertImgSrc() { // Wrap tables in an overflow-x: auto; div function wrapTables() { - var tables = document.querySelector("div.articleBody").getElementsByTagName("table"); + var tables = document.querySelectorAll("div.articleBody table"); for (table of tables) { var wrapper = document.createElement("div");