From 74336ec728453ea635cddb74e063de36e2b4376b Mon Sep 17 00:00:00 2001 From: Tzikas Date: Mon, 21 Jun 2021 17:27:08 -0400 Subject: [PATCH] gr --- main.js | 16 +++++++++------- package.json | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/main.js b/main.js index 84a517a..f0586fc 100644 --- a/main.js +++ b/main.js @@ -196,12 +196,7 @@ function createJitsiMeetWindow() { defaultHeight: 600 }); - let i = 0; - let winBadge = new Badge(windowState, { color: 'red' }); - setInterval(() => { - i++ - winBadge.update(i) - }, 10000) + // Path to root directory. const basePath = isDev ? __dirname : app.getAppPath(); @@ -267,6 +262,13 @@ function createJitsiMeetWindow() { }); + let i = 0; + let winBadge = new Badge(mainWindow, { color: 'red' }); + setInterval(() => { + i++ + winBadge.update(i) + }, 10000) + //Lets see //mainWindow.webContents.openDevTools() //This don't seem to do nothing @@ -292,7 +294,7 @@ function createJitsiMeetWindow() { } app.setBadgeCount(app.getBadgeCount() + 1) sound.play(path.join(__dirname, "resources/cowbell.wav")) - new Badge(windowState, { color: 'blue' }); + new Badge(mainWindow, { color: 'blue' }); //New Room console.log(path.join(__dirname), 'souuuuunnnndd') diff --git a/package.json b/package.json index 5bcd61d..c080075 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "CowBellClub", - "version": "1.4.8", + "version": "1.4.9", "description": "Electron application for Cowbell Club", "main": "./build/main.js", "productName": "CowbellClub",