From 2c04d69edb5739eefac45a63d165343808634c59 Mon Sep 17 00:00:00 2001 From: Eduard Prigoana Date: Tue, 21 Oct 2025 18:32:57 +0300 Subject: [PATCH] not popup --- js/api.js | 1 + js/app.js | 3 ++- js/cache.js | 1 + js/player.js | 1 + js/ui.js | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/js/api.js b/js/api.js index aa45218..2d809d5 100644 --- a/js/api.js +++ b/js/api.js @@ -1,3 +1,4 @@ +//api.js import { RATE_LIMIT_ERROR_MESSAGE, deriveTrackQuality, delay } from './utils.js'; import { APICache } from './cache.js'; diff --git a/js/app.js b/js/app.js index 021a203..07d56cc 100644 --- a/js/app.js +++ b/js/app.js @@ -1,3 +1,4 @@ +//app.js import { LosslessAPI } from './api.js'; import { apiSettings, themeManager, lastFMStorage } from './storage.js'; import { UIRenderer } from './ui.js'; @@ -409,7 +410,7 @@ document.addEventListener('DOMContentLoaded', async () => { const { token, url } = await scrobbler.getAuthUrl(); - const authWindow = window.open(url, 'lastfm-auth', 'width=800,height=600'); + const authWindow = window.open(url, '_blank'); lastfmConnectBtn.textContent = 'Waiting for authorization...'; diff --git a/js/cache.js b/js/cache.js index a12d00a..61f3341 100644 --- a/js/cache.js +++ b/js/cache.js @@ -1,3 +1,4 @@ +//cache.js export class APICache { constructor(options = {}) { this.memoryCache = new Map(); diff --git a/js/player.js b/js/player.js index 5459478..67a1e6b 100644 --- a/js/player.js +++ b/js/player.js @@ -1,3 +1,4 @@ +//player.js import { REPEAT_MODE, formatTime } from './utils.js'; export class Player { diff --git a/js/ui.js b/js/ui.js index e44f0cd..2a11137 100644 --- a/js/ui.js +++ b/js/ui.js @@ -1,3 +1,4 @@ +//ui.js import { formatTime, createPlaceholder, trackDataStore, hasExplicitContent } from './utils.js'; import { recentActivityManager } from './storage.js';