Permalink
Browse files

more fix to _g.root

  • Loading branch information...
1 parent 25d1028 commit a49547c073735b094dbf3b9aceac02d01a2e6629 @Diablohu committed Dec 23, 2016
Showing with 9 additions and 40 deletions.
  1. +1 −2 .eslintrc.js
  2. +0 −11 app/assets/js-app.js
  3. +8 −8 app/assets/js-base.js
  4. +0 −19 source/js-app/main.js
View
@@ -42,8 +42,7 @@ module.exports = {
4,
{
"SwitchCase": 1,
- "VariableDeclarator": { "var": 2, "let": 2, "const": 3 },
- "MemberExpression": 1
+ "VariableDeclarator": { "var": 2, "let": 2, "const": 3 }
}
]
}
View
@@ -1211,17 +1211,6 @@ _g.event = {
'animationiteration': 'webkitAnimationIteration',
'transitionend': 'transitionend'
};
-var rootscheck = [node.path.dirname(process.execPath), process.cwd(), node.path.join(node.gui.App.dataPath, '/Extracted Data/')];
-rootscheck.some(function (dir) {
- var hasMain = !0;
- try {
- node.fs.accessSync(node.path.join(dir, 'app', 'main.html'), node.fs.F_OK);
- } catch (e) {
- hasMain = !1;
- }
- if (hasMain) _g.root = dir;
- return hasMain;
-});
_g.path = {
'db': node.path.join(_g.root, '/app-db/'),
View
Oops, something went wrong.
View
@@ -20,25 +20,6 @@
'animationiteration': 'webkitAnimationIteration',
'transitionend': 'transitionend'
};
- const rootscheck = [
- node.path.dirname(process.execPath),
- process.cwd(),
- node.path.join(node.gui.App.dataPath, '/Extracted Data/')
- ]
- rootscheck.some(dir => {
- let hasMain = true
- try {
- node.fs.accessSync(
- node.path.join(dir, 'app', 'main.html'),
- node.fs.F_OK
- );
- } catch (e) {
- hasMain = false
- }
- if( hasMain )
- _g.root = dir
- return hasMain
- })
_g.path = {
'db': node.path.join(_g.root, '/app-db/'),

0 comments on commit a49547c

Please sign in to comment.