From 07e1a9d4dc0933fe2952b463fe99f8085ed3640c Mon Sep 17 00:00:00 2001 From: Anthony Lu <58923223+tonylu110@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:13:32 +0800 Subject: [PATCH] fix: mac change font --- electron/mac/mainMac.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electron/mac/mainMac.js b/electron/mac/mainMac.js index dd1b015..8f9e19a 100644 --- a/electron/mac/mainMac.js +++ b/electron/mac/mainMac.js @@ -1,5 +1,6 @@ const path = require('node:path') -const { app, BrowserWindow, ipcMain, screen, Menu, shell, nativeTheme, globalShortcut, Tray } = require('electron') +const fs = require('node:fs') +const { app, BrowserWindow, ipcMain, screen, Menu, shell, nativeTheme, globalShortcut, Tray, dialog } = require('electron') const Store = require('electron-store') const remoteMain = require('@electron/remote/main') const { initWindowSize, windowSize, windowSizeState, windowSizeIpc } = require('../store/windowSizeStore') @@ -52,6 +53,7 @@ function createWindow() { enableRemoteModule: true, nodeIntegration: true, contextIsolation: false, + webSecurity: false, }, })