Skip to content

Commit

Permalink
Merge pull request #115 from austinhuang0131/main-1
Browse files Browse the repository at this point in the history
Distinguish Misskey's click interact function from Mastodon's
  • Loading branch information
rugk committed Aug 19, 2023
2 parents ff84d0f + 402a400 commit ecd5411
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content_script/misskeyInject.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @param {Event} event
* @returns {void}
*/
function onClickInteract(event) {
function onClickInteractMisskey(event) {
event.stopImmediatePropagation();
event.stopPropagation();
event.preventDefault();
Expand Down Expand Up @@ -91,7 +91,7 @@ async function injectInteractionButtons() {
try {
if (!button.classList.contains(INJECTED_REPLY_CLASS)) {
button.classList.add(INJECTED_REPLY_CLASS);
button.addEventListener("click", onClickInteract);
button.addEventListener("click", onClickInteractMisskey);
button.removeEventListener("mousedown");
}
} catch (error) {
Expand Down Expand Up @@ -143,4 +143,4 @@ async function init() {
});
}

init().catch(console.error);
init().catch(console.error);

0 comments on commit ecd5411

Please sign in to comment.