Compare commits
2 Commits
913e8f0da9
...
9696b78728
Author | SHA1 | Date |
---|---|---|
Bauke | 9696b78728 | |
Bauke | 4fc38b74ce |
|
@ -6,7 +6,7 @@ export default function createManifest(
|
||||||
const manifest: Record<string, unknown> = {
|
const manifest: Record<string, unknown> = {
|
||||||
name: 'Queue',
|
name: 'Queue',
|
||||||
description: 'A WebExtension for queueing links.',
|
description: 'A WebExtension for queueing links.',
|
||||||
version: '0.3.0',
|
version: '0.3.1',
|
||||||
permissions: ['contextMenus', 'storage'],
|
permissions: ['contextMenus', 'storage'],
|
||||||
options_ui: {
|
options_ui: {
|
||||||
page: 'options/index.html',
|
page: 'options/index.html',
|
||||||
|
|
|
@ -92,7 +92,7 @@ export class Settings {
|
||||||
}
|
}
|
||||||
|
|
||||||
public nextQueueItem(): Queue.Item | undefined {
|
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> {
|
public async removeQueueItem(id: number): Promise<void> {
|
||||||
|
|
Loading…
Reference in New Issue