mirror of
https://codeberg.org/teddit/teddit
synced 2025-02-18 05:00:37 +01:00
fix missing config from commons.js
This commit is contained in:
parent
a07a48df39
commit
21fb4647ab
@ -1,4 +1,5 @@
|
|||||||
module.exports = function(request, fs) {
|
module.exports = function(request, fs) {
|
||||||
|
const config = require('../config')
|
||||||
this.downloadFile = (url) => {
|
this.downloadFile = (url) => {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
request(url, { encoding: 'binary' }, (error, response, body) => {
|
request(url, { encoding: 'binary' }, (error, response, body) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user