Compare commits

..

2 Commits

Author SHA1 Message Date
Bauke 9696b78728
Version 0.3.1! 2022-10-25 14:00:38 +02:00
Bauke 4fc38b74ce
Also use sortIndex for next queue item. 2022-10-25 14:00:15 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ export default function createManifest(
const manifest: Record<string, unknown> = {
name: 'Queue',
description: 'A WebExtension for queueing links.',
version: '0.3.0',
version: '0.3.1',
permissions: ['contextMenus', 'storage'],
options_ui: {
page: 'options/index.html',

View File

@ -92,7 +92,7 @@ export class Settings {
}
public nextQueueItem(): Queue.Item | undefined {
return this.queue.sort((a, b) => a.added.getTime() - b.added.getTime())[0];
return this.queue.sort((a, b) => a.sortIndex - b.sortIndex)[0];
}
public async removeQueueItem(id: number): Promise<void> {