mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-05 11:48:08 +01:00
refs #972 Set appId to notify in windows10
This commit is contained in:
parent
e6ed1461a9
commit
de03ea802a
@ -25,6 +25,7 @@ import openAboutWindow from 'about-window'
|
|||||||
import { Status, Notification as RemoteNotification, Account as RemoteAccount } from 'megalodon'
|
import { Status, Notification as RemoteNotification, Account as RemoteAccount } from 'megalodon'
|
||||||
import sanitizeHtml from 'sanitize-html'
|
import sanitizeHtml from 'sanitize-html'
|
||||||
|
|
||||||
|
import pkg from '~/package.json'
|
||||||
import Authentication from './auth'
|
import Authentication from './auth'
|
||||||
import Account from './account'
|
import Account from './account'
|
||||||
import StreamingManager from './streamingManager'
|
import StreamingManager from './streamingManager'
|
||||||
@ -70,6 +71,8 @@ let mainWindow: BrowserWindow | null
|
|||||||
let tray: Tray | null
|
let tray: Tray | null
|
||||||
const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : `file://${__dirname}/index.html`
|
const winURL = process.env.NODE_ENV === 'development' ? `http://localhost:9080` : `file://${__dirname}/index.html`
|
||||||
|
|
||||||
|
const appId = pkg.build.appId
|
||||||
|
|
||||||
const splashURL =
|
const splashURL =
|
||||||
process.env.NODE_ENV === 'development'
|
process.env.NODE_ENV === 'development'
|
||||||
? path.resolve(__dirname, '../../static/splash-screen.html')
|
? path.resolve(__dirname, '../../static/splash-screen.html')
|
||||||
@ -196,6 +199,12 @@ async function createWindow() {
|
|||||||
app.dock.setMenu(dockMenu)
|
app.dock.setMenu(dockMenu)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Windows10 don' notify, so we have to set appId
|
||||||
|
* https://github.com/electron/electron/issues/10864
|
||||||
|
*/
|
||||||
|
app.setAppUserModelId(appId)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable accessibility
|
* Enable accessibility
|
||||||
*/
|
*/
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"strictFunctionTypes": true,
|
"strictFunctionTypes": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user