Compare commits

..

No commits in common. "84abfb7cf73f08164e2368a35ad8bada4d5ef56d" and "7de560f44c30faa674d2f6dfca551d799df9e21b" have entirely different histories.

4 changed files with 3 additions and 9 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "twitch-vod-manager",
"version": "4.6.121",
"version": "4.6.120",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "twitch-vod-manager",
"version": "4.6.121",
"version": "4.6.120",
"license": "MIT",
"dependencies": {
"axios": "^1.6.0",

View File

@ -1,6 +1,6 @@
{
"name": "twitch-vod-manager",
"version": "4.6.121",
"version": "4.6.120",
"description": "Twitch VOD Manager - Download Twitch VODs easily",
"main": "dist/main.js",
"author": "xRangerDE",

View File

@ -186,14 +186,11 @@ function showQueueContextMenu(x: number, y: number, item: QueueItem): void {
const menu = document.createElement('div');
menu.className = 'context-menu';
menu.setAttribute('role', 'menu');
const makeItem = (label: string, onClick: () => void, disabled = false): HTMLElement => {
const el = document.createElement('div');
el.textContent = label;
el.className = 'context-menu-item' + (disabled ? ' disabled' : '');
el.setAttribute('role', 'menuitem');
if (disabled) el.setAttribute('aria-disabled', 'true');
if (!disabled) {
el.addEventListener('click', () => {
try { onClick(); } finally { closeQueueContextMenu(); }
@ -205,7 +202,6 @@ function showQueueContextMenu(x: number, y: number, item: QueueItem): void {
const makeSeparator = (): HTMLElement => {
const sep = document.createElement('div');
sep.className = 'context-menu-separator';
sep.setAttribute('role', 'separator');
return sep;
};

View File

@ -925,7 +925,6 @@ function showVodContextMenu(x: number, y: number, ctx: VodCardContext): void {
const menu = document.createElement('div');
menu.className = 'context-menu';
menu.setAttribute('role', 'menu');
const downloadedIds = new Set(
Array.isArray(config.downloaded_vod_ids)
@ -938,7 +937,6 @@ function showVodContextMenu(x: number, y: number, ctx: VodCardContext): void {
const el = document.createElement('div');
el.textContent = label;
el.className = 'context-menu-item';
el.setAttribute('role', 'menuitem');
el.addEventListener('click', () => {
try { onClick(); } finally { closeVodContextMenu(); }
});