Skip to content

Commit

Permalink
change setting settingsItem attributes iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
GooseOb committed Dec 1, 2024
1 parent 200f5a3 commit 8fef98a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8fef98a

Please sign in to comment.