Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: global.win -> globalThis.window

Abdullah Atta4805e54ef31a
diff --git a/apps/web/desktop/ipc/actions/bringToFront.js b/apps/web/desktop/ipc/actions/bringToFront.js
index 02ae593ce..f67a95ff4 100644
--- a/apps/web/desktop/ipc/actions/bringToFront.js
+++ b/apps/web/desktop/ipc/actions/bringToFront.js
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
export default () => {
- if (!global.win) return;
- global.win.show();
- global.win.moveTop();
+ if (!globalThis.window) return;
+ globalThis.window.show();
+ globalThis.window.moveTop();
};
diff --git a/apps/web/desktop/ipc/actions/showNotification.js b/apps/web/desktop/ipc/actions/showNotification.js
index 1e23636eb..1b6142af0 100644
--- a/apps/web/desktop/ipc/actions/showNotification.js
+++ b/apps/web/desktop/ipc/actions/showNotification.js
@@ -23,7 +23,6 @@ import { sendMessageToRenderer } from "../utils";
import { platform } from "os";
export default (args) => {
- if (!global.win) return;
const notification = new Notification({
...args,
icon: join(