Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: extract mastodon-specific code into own file #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CherryKitten
Copy link

Preparation for compatibility with e.g. Calckey

Preparation for compatibility with e.g. Calckey
Copy link
Contributor

@nachtjasmin nachtjasmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's definitely a good step forward, although we should get rid of the circular dependencies for a better understandability of the code.

@@ -0,0 +1,51 @@
import { log } from "./logging.js";
import { findAllDescendants, hasClasses } from "./domhelpers.js";
import { addtoTootObserver, onTootIntersection } from "../content_scripts/protoots.js";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely not a fan of circular dependencies. Those methods should be extracted either into the mastodon-specific lib or another one that can be used with future implementations as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants