Skip to content

A full-featured download manager.

fix: Windows notification func

Dr_rOotf541f82ab8c8
diff --git a/src/main/index.js b/src/main/index.js
index b2bb93ae..c6b92f45 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -8,6 +8,14 @@ if (process.env.NODE_ENV !== 'development') {
global.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
}
+/**
+ * Fix Windows notification func
+ * appId defined in .electron-vue/webpack.main.config.js
+ */
+if (process.platform === 'win32') {
+ app.setAppUserModelId(appId)
+}
+
function _init () {
let openURL = null
if (!is.mas()) {