mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-23 19:47:04 -04:00
Add jsdom for headless testing.
This commit is contained in:
parent
1d4b4b8a02
commit
a6994150ca
19 changed files with 25 additions and 31 deletions
|
@ -1,6 +1,5 @@
|
|||
const kjua = require('kjua');
|
||||
const {isNum, dom} = require('../util');
|
||||
const {win} = require('../globals');
|
||||
const event = require('../core/event');
|
||||
const format = require('../core/format');
|
||||
const resource = require('../core/resource');
|
||||
|
@ -96,7 +95,7 @@ const update = item => {
|
|||
}
|
||||
|
||||
if (settings.qrcode) {
|
||||
const loc = win.location;
|
||||
const loc = global.window.location;
|
||||
$qrcode.clr().app(kjua({
|
||||
render: 'image',
|
||||
size: 200,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue