From ed416caf0868375921b9c01e7d3dc8afd6b1d9d5 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 20 Jan 2019 12:45:23 +0200 Subject: [PATCH] typescript(translucid): idk anymore Signed-off-by: prescientmoon --- typescript/translucid/read.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/translucid/read.js b/typescript/translucid/read.js index 76644a7..25b2ce2 100644 --- a/typescript/translucid/read.js +++ b/typescript/translucid/read.js @@ -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);