Skip to content

Commit

Permalink
Some style and remove some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Mar 17, 2024
1 parent 67be410 commit 9f782aa
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 541 deletions.
159 changes: 81 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions src/backend/electron.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const keytar = require("keytar");
const Store = require("electron-store");
const { autoUpdater } = require("electron-updater");
const fs = require("fs");
const { createSwarm, destroySwarm, sendMessage } = require("./hyper/index.cjs");
const { error } = require("console");


Expand Down Expand Up @@ -708,21 +707,6 @@ ipcMain.on('successmessage', async (e, message) => {
successMessage
///////////// HYPER CORE

const sender = (channel, data) => {
mainWindow.webContents.send(channel, data)
}

ipcMain.on('connect-hyper', async (e, secret) => {
createSwarm(sender, secret)
})

ipcMain.on('disconnect-hyper', async (e, domain) => {
destroySwarm(sender)
})

ipcMain.on('send-message', async (e, data) => {
sendMessage(data)
})

///////////// OPEN URL IN EXTERNAL BROWSER

Expand Down
Loading

0 comments on commit 9f782aa

Please sign in to comment.