diff --git a/index.ts b/index.ts index 52968ce..9f27fe9 100644 --- a/index.ts +++ b/index.ts @@ -797,14 +797,14 @@ const onPageChange = async () => { 'http://www.w3.org/2000/svg', 'svg' ); - const iconStyle = { - viewBox: '0 0 24 24', - width: '24', - height: '24', - fill: 'var(--yt-spec-text-primary)', - }; - for (const key in iconStyle) - settingsIcon.setAttribute(key, iconStyle[key as keyof typeof iconStyle]); + for (const [prop, value] of [ + ['viewBox', '0 0 24 24'], + ['width', '24'], + ['height', '24'], + ['fill', 'var(--yt-spec-text-primary)'], + ] as const) { + settingsIcon.setAttribute(prop, value); + } settingsIcon.append($('settings')); menu.btn.setAttribute('aria-controls', MENU_ID); menu.btn.classList.add(btnClass + '--icon-button'); diff --git a/package.json b/package.json index c1565f5..da882fc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "yt-defaulter", "author": "GooseOb", - "version": "1.11.0-alpha", + "version": "1.11.0-alpha.0", "repository": { "type": "git", "url": "git+https://github.com/GooseOb/YT-Defaulter.git"