Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
enoobis authored Apr 8, 2024
1 parent 15f2b5f commit 7bf677b
Show file tree
Hide file tree
Showing 4 changed files with 880 additions and 0 deletions.
Binary file added icon/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const { app, BrowserWindow, Menu } = require('electron');
const path = require('path');

function createWindow() {
const mainWindow = new BrowserWindow({
width: 300,
height: 400,
resizable: false, // Set resizable to false
webPreferences: {
nodeIntegration: true
},
icon: path.join(__dirname, 'icon', 'image.png')
});

mainWindow.loadURL('https://enoobis-org.github.io/embry/');

// Inject CSS to hide scroll bar
mainWindow.webContents.insertCSS(`
::-webkit-scrollbar {
display: none;
}
`);
}

app.whenReady().then(() => {
createWindow();

app.on('activate', function () {
if (BrowserWindow.getAllWindows().length === 0) createWindow();
});

// Remove default menu
Menu.setApplicationMenu(null);
});

app.on('window-all-closed', function () {
if (process.platform !== 'darwin') app.quit();
});
Loading

0 comments on commit 7bf677b

Please sign in to comment.