Skip to content
Snippets Groups Projects
Commit 45c032aa authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Bug when duniter UI is launched through Nw.js

parent 4d5340d0
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ function listPlugins(conditionTest) {
} catch (e) {}
}
// Special: self dependency (if local package is also a module)
if (pkgJSON.main) {
if (pkgJSON.main && pkgJSON.main.match(/\.js/)) { // With NW.js, the main is an index.html file, which causes a bug
const dep = pkgJSON.name
const required = require(path.resolve('./' + pkgJSON.main))
if (required && conditionTest(required)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment