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

Update circle.js #309

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

Update circle.js #309

wants to merge 1 commit into from

Conversation

XjamathonX
Copy link
Contributor

added set interval checking based off zoom.js code which appears to be working in tests

added set interval checking based off zoom.js code which appears to be working in tests
@steveseguin
Copy link
Owner

steveseguin commented Nov 1, 2024

Thank you for this pull request.

I'm not entirely sure this is needed. the last Message variable doesn't exist either, so it doesn't appear to be doing anything.

I took a look and the circle.js script already is looking for page loads and checks at an interval already, so I'd imagine it should be working.

window.addEventListener('popstate', checkUrlAndRunScript);
setInterval(function(){
		try {
			if (!checkUrlAndRunScript()){return;}
			if (document.querySelector('#message-scroll-view')){

Looking at the manifest code, the code will only inject if one of the following pages is loaded:

image

It won't load the script if you "soft navigate" to one of those pages though, so perhaps keep an eye out there.

@XjamathonX
Copy link
Contributor Author

XjamathonX commented Nov 1, 2024 via email

@@ -1,4 +1,8 @@
(function () {

setInterval(() => {

Choose a reason for hiding this comment

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

why do we stray away from matching indent depth here?

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.

3 participants