diff --git a/eslint.config.js b/eslint.config.js index 65efb4e..0c3c467 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -32,7 +32,7 @@ var config = [ plugins: {}, rules: { ...js.configs.recommended.rules, - // "no-unused-vars": "warn", + "no-unused-vars": "warn", "prefer-const": "off", // "no-undef" will show up a lot due client functions being in separate files so they aren't aware of each other "no-undef": "warn", diff --git a/index.js b/index.js index 531febc..21f9748 100644 --- a/index.js +++ b/index.js @@ -7,8 +7,8 @@ var path = require("path"); var BrowserWindow = require("browser-window"); var mainWindow = null; -let bbb; var unityHomeDir = path.join(__dirname, "../../WebPlayer"); + // If running in non-packaged / development mode, this dir will be slightly different if (process.env.npm_node_execpath) { unityHomeDir = path.join(app.getAppPath(), "/build/WebPlayer");