fix jsdom
This commit is contained in:
parent
25e27f8fd2
commit
fa9f1bd4fb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user