Skip to content

A full-featured download manager.

fix: preserve window title and add app icons

Dr_rOotb577dbf6f419
diff --git a/index.html b/index.html
index d7119431..5774d607 100644
--- a/index.html
+++ b/index.html
@@ -2,6 +2,8 @@
<html lang="en-US">
<head>
<meta charset="UTF-8" />
+ <link rel="icon" href="/favicon.ico" sizes="32x32" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<title>Motrix</title>
</head>
<body>
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
new file mode 100644
index 00000000..b2e69819
Binary files /dev/null and b/public/apple-touch-icon.png differ
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 00000000..9fb94ab1
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/src/main/window/window-manager.ts b/src/main/window/window-manager.ts
index 4fcfca8e..52b10cd8 100644
--- a/src/main/window/window-manager.ts
+++ b/src/main/window/window-manager.ts
@@ -385,6 +385,10 @@ export class WindowManager {
},
})
+ win.on('page-title-updated', (event) => {
+ event.preventDefault()
+ })
+
if (platform === 'win32' || platform === 'linux') {
win.setAutoHideMenuBar(false)
win.setMenuBarVisibility(false)