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 11import type { WebContents } from "electron/main" ;
22import fs from "node:fs" ;
3- import process from "node:process" ;
43
54import * as remote from "@electron/remote" ;
65import { app , dialog } from "@electron/remote" ;
@@ -251,10 +250,7 @@ export default class WebView {
251250 webContents . on ( "page-favicon-updated" , ( _event , favicons ) => {
252251 // This returns a string of favicons URL. If there is a PM counts in unread messages then the URL would be like
253252 // 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 ) {
258254 // This api is only supported on macOS
259255 app . dock . setBadge ( "●" ) ;
260256 // Bounce the dock
You can’t perform that action at this time.
0 commit comments