We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8414c1c commit d6a69bdCopy full SHA for d6a69bd
app/notify.js
@@ -4,10 +4,7 @@ const path = require("path")
4
5
const { notifier } = require("./native_node_modules")
6
7
-let { Notification } = require("electron")
8
-if (typeof Notification == "undefined") {
9
- Notification = require("electron").remote.Notification
10
-}
+const { Notification } = require("electron")
11
12
/**
13
* @param {string} title
app/plugins/notification.js
@@ -11,7 +11,8 @@
// @ts-check
14
-const notify = require("../notify.js")
+/** @type {import("../notify")} */
15
+const notify = require("electron").remote.require("./notify.js")
16
17
18
* @typedef {import("./index").Plugin} Plugin
0 commit comments