Skip to content

Commit 1852fa2

Browse files
committed
Remove commented out slack functions from electron-main.js
1 parent 0037f2e commit 1852fa2

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To run electron app in dev mode (note: Vue Devtools will launch automatically)
3939
npm run dev
4040
```
4141

42-
To build a new .dmg / windows .exe
42+
To build a new .zip / .deb
4343

4444
```
4545
npm run build

src-electron/electron-main.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { app, BrowserWindow, nativeTheme, dialog, ipcMain } from "electron";
2-
//import deeplink currently did not work in our WSL2 computers - commented out line 3 fixed our issue to be able to run in dev mode
3-
// import { Deeplink } from "electron-deeplink";
42
import isDev from "electron-is-dev";
53
import path from "path";
64
import os from "os";
@@ -27,19 +25,6 @@ let mainWindow;
2725
let authCode;
2826
const protocol = isDev ? "overvuedev" : "overvue";
2927

30-
// Used to console log for main process in production mode
31-
// ** Only works on production level application; throws errors if you run quasar dev
32-
// if (process.env.PROD) {
33-
// const deeplink = new Deeplink({
34-
// app,
35-
// mainWindow,
36-
// protocol,
37-
// isDev,
38-
// debugLogging: true,
39-
// // electronPath: '/node_modules/electron/dist/Electron.app'
40-
// });
41-
// }
42-
4328
// Handle dialogs for ExportProjectComponent
4429
ipcMain.handle("exportProject", async (event, arg) => {
4530
const result = await dialog.showSaveDialog(arg);
@@ -152,17 +137,6 @@ function getSlackUser(token, userId) {
152137
request.end();
153138
}
154139

155-
function setOauthListener() {
156-
157-
// if (process.env.PROD) {
158-
// return deeplink.on("received", (link) => {
159-
// // Extracts Slack authorization code from deep link
160-
// authCode = link.split("=")[1];
161-
// sendTokenRequest();
162-
// });
163-
// }
164-
}
165-
166140
function createWindow() {
167141
/**
168142
* Initial window options
@@ -203,7 +177,6 @@ app
203177
.whenReady()
204178
.then(() => {
205179
createWindow();
206-
setOauthListener();
207180
})
208181
.catch((err) => {
209182
console.log(err);
@@ -218,6 +191,5 @@ app.on("window-all-closed", () => {
218191
app.on("activate", () => {
219192
if (mainWindow === null) {
220193
createWindow();
221-
setOauthListener();
222194
}
223195
});

0 commit comments

Comments
 (0)