Skip to content

Commit

Permalink
fix function openFile not implemented error
Browse files Browse the repository at this point in the history
  • Loading branch information
solvedDev committed Jan 16, 2020
1 parent f5c92f0 commit 79cafee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ function createSplashScreen() {

loadingWindow.webContents.on("did-finish-load", () => {
loadingWindow.show();

if(process.platform == 'win32' && process.argv.length >= 2 && process.env.NODE_ENV !== "development") {
openFile(process.argv[1]);
}
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/renderer/scripts/Project/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ProjectConfig {
}

}
static get prefix() {
static get prefix(): Promise<string> {
return (async () => {
try {
return (await readJSON(this.config_path)).prefix || "bridge";
Expand All @@ -45,7 +45,7 @@ export default class ProjectConfig {
})();
}

static get theme() {
static get theme(): Promise<string> {
return (async () => {
try {
return (await readJSON(this.config_path)).theme[SETTINGS.load().id] || "bridge.default.theme";
Expand Down

0 comments on commit 79cafee

Please sign in to comment.