Skip to content

Commit

Permalink
fix: broken selector
Browse files Browse the repository at this point in the history
  • Loading branch information
7nik committed Mar 7, 2024
1 parent 91d9d44 commit dad488b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ap-vk-poster",
"version": "2.6.5",
"version": "2.6.6",
"private": true,
"scripts": {
"build": "rollup -c --environment PROD",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ new MutationObserver((records) => records.forEach((record) => {
subtree: true,
});
// add the button at the page start
const container = document.querySelector("span#rating");
const container = document.querySelector("span.rating");
if (container) {
container.append(btn);
// re-add button after it was removed at hydration
Expand Down

0 comments on commit dad488b

Please sign in to comment.