Skip to content

Commit 2b5b518

Browse files
committed
Fixed issue with path.join js error in getGoodSketchName()
1 parent fb3fbf7 commit 2b5b518

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projectGeneratorElectron/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ function getGoodSketchName(arg){
348348
if (bUseMoniker){
349349

350350
var projectNames = new moniker.Dictionary();
351-
projectNames.read( path.join(__dirname, 'static', 'data', 'sketchAdjectives.txt'));
351+
var tmpPath = require('path');
352+
projectNames.read( tmpPath.join(__dirname, 'static', 'data', 'sketchAdjectives.txt'));
352353
goodName = "mySketch";
353354

354355
while (foundOne === false) {

0 commit comments

Comments
 (0)