Skip to content

Commit

Permalink
🐛 shit-youtube-handle-nameを追加してなかったので2つ名前要素が出来ていた
Browse files Browse the repository at this point in the history
  • Loading branch information
yakisova41 committed Jun 15, 2023
1 parent e898df3 commit 5078497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "return-youtube-comment-username",
"license": "MIT",
"version": "0.2.3",
"version": "0.2.4",
"type": "commonjs",
"devDependencies": {
"@swc/core": "^1.3.36",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function replacedElement(nameElem: Element, name: string): void {
if (replacedNameElem !== null) {
replacedNameElem.innerHTML = name;
replacedNameElem.className = nameElem.className;
replacedNameElem.classList.add(className);
} else {
const replacedNameElem = document.createElement("span");
replacedNameElem.className = nameElem.className;
Expand Down

0 comments on commit 5078497

Please sign in to comment.