Skip to content

Commit 26d9348

Browse files
committed
📦 Dependency updates to allow working build. Move CSS into JS
1 parent dabff03 commit 26d9348

File tree

4 files changed

+415
-596
lines changed

4 files changed

+415
-596
lines changed

‎browser.css

-8
This file was deleted.

‎index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fs from 'node:fs';
21
import path from 'node:path';
32
import { BrowserWindow, Menu, app, ipcMain, shell } from 'electron';
43
import contextMenu from 'electron-context-menu';
@@ -143,8 +142,11 @@ app.on('ready', () => {
143142
Menu.setApplicationMenu(menu);
144143

145144
// Insert CSS
146-
page.on('dom-ready', () => {
147-
page.insertCSS(fs.readFileSync('browser.css', 'utf8'));
145+
page.on('did-finish-load', () => {
146+
// Most of these are in Taskana's Help menu
147+
page.insertCSS(
148+
'.UpgradeButton,.BusinessUpgradeButton,.SidebarInvite,.Sidebar-withInvitebutton,.TopbarHelpMenuButton-button{display: none !important}'
149+
);
148150
mainWindow.show();
149151
});
150152
});

0 commit comments

Comments
 (0)