not popup
This commit is contained in:
parent
8ebc1542d5
commit
2c04d69edb
5 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
//api.js
|
||||||
import { RATE_LIMIT_ERROR_MESSAGE, deriveTrackQuality, delay } from './utils.js';
|
import { RATE_LIMIT_ERROR_MESSAGE, deriveTrackQuality, delay } from './utils.js';
|
||||||
import { APICache } from './cache.js';
|
import { APICache } from './cache.js';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//app.js
|
||||||
import { LosslessAPI } from './api.js';
|
import { LosslessAPI } from './api.js';
|
||||||
import { apiSettings, themeManager, lastFMStorage } from './storage.js';
|
import { apiSettings, themeManager, lastFMStorage } from './storage.js';
|
||||||
import { UIRenderer } from './ui.js';
|
import { UIRenderer } from './ui.js';
|
||||||
|
|
@ -409,7 +410,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
|
|
||||||
const { token, url } = await scrobbler.getAuthUrl();
|
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...';
|
lastfmConnectBtn.textContent = 'Waiting for authorization...';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//cache.js
|
||||||
export class APICache {
|
export class APICache {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
this.memoryCache = new Map();
|
this.memoryCache = new Map();
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
//player.js
|
||||||
import { REPEAT_MODE, formatTime } from './utils.js';
|
import { REPEAT_MODE, formatTime } from './utils.js';
|
||||||
|
|
||||||
export class Player {
|
export class Player {
|
||||||
|
|
|
||||||
1
js/ui.js
1
js/ui.js
|
|
@ -1,3 +1,4 @@
|
||||||
|
//ui.js
|
||||||
import { formatTime, createPlaceholder, trackDataStore, hasExplicitContent } from './utils.js';
|
import { formatTime, createPlaceholder, trackDataStore, hasExplicitContent } from './utils.js';
|
||||||
import { recentActivityManager } from './storage.js';
|
import { recentActivityManager } from './storage.js';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue