mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
feat: remove console log and ensure background is transparent on browser window
This commit is contained in:
@@ -29,7 +29,7 @@ export class HydraApi {
|
||||
private static instance: AxiosInstance;
|
||||
|
||||
private static readonly EXPIRATION_OFFSET_IN_MS = 1000 * 60 * 5; // 5 minutes
|
||||
private static readonly ADD_LOG_INTERCEPTOR = false;
|
||||
private static readonly ADD_LOG_INTERCEPTOR = true;
|
||||
|
||||
private static secondsToMilliseconds(seconds: number) {
|
||||
return seconds * 1000;
|
||||
|
||||
@@ -289,14 +289,6 @@ export class WindowManager {
|
||||
const display = screen.getPrimaryDisplay();
|
||||
const { width, height } = display.workAreaSize;
|
||||
|
||||
console.log(
|
||||
width,
|
||||
height,
|
||||
this.NOTIFICATION_WINDOW_HEIGHT,
|
||||
this.NOTIFICATION_WINDOW_WIDTH,
|
||||
position
|
||||
);
|
||||
|
||||
if (position === "bottom-left") {
|
||||
return {
|
||||
x: 0,
|
||||
@@ -364,6 +356,7 @@ export class WindowManager {
|
||||
maximizable: false,
|
||||
autoHideMenuBar: true,
|
||||
minimizable: false,
|
||||
backgroundColor: "#00000000",
|
||||
focusable: false,
|
||||
skipTaskbar: true,
|
||||
frame: false,
|
||||
|
||||
@@ -141,10 +141,8 @@ export function AchievementNotification() {
|
||||
if (!shadowRootRef) return;
|
||||
const activeTheme = await window.electron.getActiveCustomTheme();
|
||||
if (activeTheme?.code) {
|
||||
console.log("injecting custom css");
|
||||
injectCustomCss(activeTheme.code, shadowRootRef);
|
||||
} else {
|
||||
console.log("removing custom css");
|
||||
removeCustomCss(shadowRootRef);
|
||||
}
|
||||
}, [shadowRootRef]);
|
||||
@@ -155,7 +153,6 @@ export function AchievementNotification() {
|
||||
|
||||
useEffect(() => {
|
||||
const unsubscribe = window.electron.onCustomThemeUpdated(() => {
|
||||
console.log("onCustomThemeUpdated");
|
||||
loadAndApplyTheme();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user