mirror of
https://github.com/daniel-j/fimfic2epub.git
synced 2024-05-20 20:33:35 +12:00
fix standalone build
This commit is contained in:
parent
0b8f4317a2
commit
c333773bd7
|
@ -2,7 +2,7 @@
|
|||
import isNode from 'detect-node'
|
||||
|
||||
function fetchNode (url, responseType) {
|
||||
const fetch = require('node-fetch')
|
||||
const fetch = require('node-fetch').default
|
||||
if (url.startsWith('/')) {
|
||||
url = 'https://fimfiction.net' + url
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue