Skip to content

Commit

Permalink
Fixed forgeConfig.ts and bumped version.
Browse files Browse the repository at this point in the history
It seems that 'object.ts' can't be loaded when there's no electron module.
So I still need to leave that one 'require()' in the configuration.
  • Loading branch information
SpacingBat3 committed Mar 20, 2021
1 parent 49d1d59 commit 7b2e3f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "electron-discord-webapp",
"productName": "Electron Discord Web App",
"version": "1.2.0",
"version": "1.2.1",
"description": "A Discord Web App made with the Electron API.",
"main": "src/js/main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/ts/configForge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

// Let's import some keys from the package.json:

import { packageJson } from './object.js'
/* eslint-disable */
const packageJson = require("../../package.json");

// Global variables in the config:
const iconFile = "icons/app.png"
Expand Down
1 change: 0 additions & 1 deletion src/ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ if (appDir.indexOf(".asar") < 0) {
appIconDir = path.join(appDir, "..");
}

console.log(appIconDir)
// Load scripts:
import {checkVersion} from './update.js'
import {getUserAgent} from './userAgent.js';
Expand Down

0 comments on commit 7b2e3f4

Please sign in to comment.