diff --git a/forge.config.ts b/forge.config.ts
index 851d63e14..d8e0ae1da 100644
--- a/forge.config.ts
+++ b/forge.config.ts
@@ -26,7 +26,7 @@ const ymlMapsMap = {
}
const keepModules = new Set(["font-list", "vscode-languagedetection"])
-const keepLanguages = new Set(["en", "en_GB", "zh_CN"])
+const keepLanguages = new Set(["en", "en_GB", "zh_CN", "zh-CN", "en-GB"])
// remove folders & files not to be included in the app
async function cleanSources(
buildPath,
diff --git a/src/main/index.ts b/src/main/index.ts
index 8bee95718..6773752e9 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -106,6 +106,8 @@ function bootsharp() {
})
const handleOpen = (url: string) => {
+ const isValid = URL.canParse(url)
+ if (!isValid) return
const urlObj = new URL(url)
if (urlObj.hostname === "auth" || urlObj.pathname === "//auth") {
diff --git a/src/main/lib/dock.ts b/src/main/lib/dock.ts
index 509fbb018..2359f7540 100644
--- a/src/main/lib/dock.ts
+++ b/src/main/lib/dock.ts
@@ -1,8 +1,12 @@
import { app } from "electron"
+import { isWindows } from "../env"
+
export const setDockCount = (
input: number,
) => {
+ // TODO use Electron Overlay API
+ if (isWindows) return
if (app.dock) {
if (input === 0) {
app.dock.setBadge("")
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index 5715e70ed..5abdbf6b9 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -5,6 +5,7 @@ import { Outlet } from "react-router-dom"
import { env } from "../../env.js"
import { useAppIsReady } from "./atoms/app"
import { useUISettingKey } from "./atoms/settings/ui"
+import { RootPortal } from "./components/ui/portal/index.js"
import { applyAfterReadyCallbacks } from "./initialize/queue.js"
import { appLog } from "./lib/log"
import { cn, getOS } from "./lib/utils"
@@ -45,17 +46,19 @@ function App() {
const windowsElectron = window.electron && getOS() === "Windows"
return (