fix jsdom

This commit is contained in:
Flummi 2017-12-04 14:59:48 +01:00
parent 25e27f8fd2
commit fa9f1bd4fb

View File

@ -1,7 +1,7 @@
import sql from "../sql";
import rp from "request-promise";
import JSDOM from "jsdom";
import jsdom from "jsdom";
const data = {
abschieben: [],
@ -221,7 +221,7 @@ export default bot => {
rp("http://idlerpg.rizon.net/players.php").then(top => {
let prank = 0
, i = 1;
const dom = new jsdom(top);
const dom = new jsdom.JSDOM(top);
let playerlist = dom.window.document.querySelectorAll("ol > li");
let player = null;
for(let p of playerlist) {