1
Fork 0

typescript(translucid): idk anymore

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-20 12:45:23 +02:00 committed by prescientmoon
parent d0fbe7b5e9
commit ed416caf08
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const fs = require('fs');
function read(url) {
return new Promise((resolve, reject) => {
fs.readFile(`${__dirname}/${url}`, "utf8", (err, data) => {
fs.readFile(`${__dirname}/../../${url}`, "utf8", (err, data) => {
if (err)
reject(err);
resolve(data);