From 2e13126185e2c3be45649a3747e142f97af781ee Mon Sep 17 00:00:00 2001 From: binarybaron <86064887+binarybaron@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:21:11 +0200 Subject: [PATCH] chore: Remove blocked-at npm package, setZoomFactor to 1.2 --- package-lock.json | 6 ------ package.json | 1 - src/main/main.ts | 11 ----------- src/renderer/index.tsx | 2 ++ 4 files changed, 2 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index b2b89e3..384b08f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.60", "@reduxjs/toolkit": "^1.7.1", - "blocked-at": "^1.2.0", "electron-redux": "2.0.0-alpha.8", "electron-updater": "^5.3.0", "electrum-cash": "^2.0.10", @@ -4223,11 +4222,6 @@ "node": ">= 6" } }, - "node_modules/blocked-at": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/blocked-at/-/blocked-at-1.2.0.tgz", - "integrity": "sha512-Ba9yhK4KcFrgqEPgsU0qVGiMimf+VrD9QJo9pgwjg4yl0GXwgOJS8IRx2rPepQjalrmUdGTqX47bSuJLUMLX7w==" - }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", diff --git a/package.json b/package.json index 1216e1a..d3881dd 100644 --- a/package.json +++ b/package.json @@ -234,7 +234,6 @@ "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.60", "@reduxjs/toolkit": "^1.7.1", - "blocked-at": "^1.2.0", "electron-redux": "2.0.0-alpha.8", "electron-updater": "^5.3.0", "electrum-cash": "^2.0.10", diff --git a/src/main/main.ts b/src/main/main.ts index 46217c3..a1de3c8 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -155,17 +155,6 @@ if (gotTheLock) { app.quit(); } -if (isDevelopment) { - blocked( - (time, stack) => { - logger.trace({ time, stack }, `Main thread has been blocked`); - }, - { - threshold: 250, - } - ); -} - ipcMain.handle('stop-cli', stopCli); ipcMain.handle('spawn-start-rpc', startRPC); diff --git a/src/renderer/index.tsx b/src/renderer/index.tsx index dd46071..d303d29 100644 --- a/src/renderer/index.tsx +++ b/src/renderer/index.tsx @@ -12,6 +12,7 @@ import { } from './api'; import logger from '../utils/logger'; import App from './components/App'; +import { webFrame } from 'electron'; render( @@ -55,3 +56,4 @@ async function fetchInitialData() { } fetchInitialData(); +webFrame.setZoomFactor(1.2) \ No newline at end of file