2.8.1 release

This commit is contained in:
2022-04-21 17:49:11 +02:00
parent de97ac8a00
commit d66dd8cc9e
4 changed files with 13 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ const statuses = require("./constants/statuses");
const hotkeys = require("./scripts/hotkeys");
const globalEvents = require("./constants/globalEvents");
const notificationPath = `${app.getPath("userData")}/notification.jpg`;
const appName = "Tidal Hifi";
let currentSong = "";
let player;
let currentPlayStatus = statuses.paused;
@@ -225,7 +226,7 @@ function handleLogout() {
}
function addFullScreenListeners() {
window.document.addEventListener("fullscreenchange", (event) => {
window.document.addEventListener("fullscreenchange", () => {
ipcRenderer.send(globalEvents.refreshMenuBar);
});
}
@@ -236,7 +237,7 @@ function addFullScreenListeners() {
*/
function addIPCEventListeners() {
window.addEventListener("DOMContentLoaded", () => {
ipcRenderer.on("globalEvent", (event, args) => {
ipcRenderer.on("globalEvent", (_event, args) => {
switch (args) {
case globalEvents.playPause:
playPause();
@@ -336,7 +337,6 @@ setInterval(function () {
const album = elements.getAlbumName();
const current = elements.getText("current");
const duration = elements.getText("duration");
const appName = "Tidal Hifi";
const progressBarcurrentTime = elements.get("bar").getAttribute("aria-valuenow");
const songDashArtistTitle = `${title} - ${artists}`;
const currentStatus = getCurrentlyPlayingStatus();