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';