Skip to content

Commit

Permalink
Merge pull request #6 from Favna/patch-1
Browse files Browse the repository at this point in the history
Fix an error that happens without this
  • Loading branch information
LucasLeandro1204 authored Aug 7, 2017
2 parents 4e9bacf + 592f965 commit f32446f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pornsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Pornsearch {
}

load () {
let dir = Path.resolve('./src/Modules');
let dir = Path.join(__dirname, 'Modules');
let files = FS.readdirSync(dir, 'UTF-8');

this.modules = files.map(file => AbstractModule.extendsToMe(new (require(Path.resolve(dir, file)))));
Expand Down

0 comments on commit f32446f

Please sign in to comment.