File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
app/renderer/js/components Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { WebContents } from "electron/main" ;
2
2
import fs from "node:fs" ;
3
- import process from "node:process" ;
4
3
5
4
import * as remote from "@electron/remote" ;
6
5
import { app , dialog } from "@electron/remote" ;
@@ -251,10 +250,7 @@ export default class WebView {
251
250
webContents . on ( "page-favicon-updated" , ( _event , favicons ) => {
252
251
// This returns a string of favicons URL. If there is a PM counts in unread messages then the URL would be like
253
252
// https://chat.zulip.org/static/images/favicon/favicon-pms.png
254
- if (
255
- favicons [ 0 ] . indexOf ( "favicon-pms" ) > 0 &&
256
- process . platform === "darwin"
257
- ) {
253
+ if ( favicons [ 0 ] . indexOf ( "favicon-pms" ) > 0 && app . dock !== undefined ) {
258
254
// This api is only supported on macOS
259
255
app . dock . setBadge ( "●" ) ;
260
256
// Bounce the dock
You can’t perform that action at this time.
0 commit comments