Fix null error in wrapTables()

This commit is contained in:
Nate Weaver 2020-02-24 12:24:42 -06:00
parent 5bbda2a68e
commit 781dd2ff73
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function convertImgSrc() {
// Wrap tables in an overflow-x: auto; div // Wrap tables in an overflow-x: auto; div
function wrapTables() { function wrapTables() {
var tables = document.querySelector("div.articleBody").getElementsByTagName("table"); var tables = document.querySelectorAll("div.articleBody table");
for (table of tables) { for (table of tables) {
var wrapper = document.createElement("div"); var wrapper = document.createElement("div");