Skip to content

Fix architecture tracking.#3999

Open
lewisgoddard wants to merge 2 commits intomasterfrom
fix-architecture-tracking
Open

Fix architecture tracking.#3999
lewisgoddard wants to merge 2 commits intomasterfrom
fix-architecture-tracking

Conversation

@lewisgoddard
Copy link
Member

@lewisgoddard lewisgoddard commented Feb 28, 2026

  • Remove previous.js, it was never being used.
  • Use class based tracking, no async methods, switches architecture detection from await detectedArchitecture() to CSS class checks (arm/x86) on the download links, eliminating the async click handler issue.

This pull request is ready for review.

@lewisgoddard lewisgoddard requested a review from a team February 28, 2026 13:40
@lewisgoddard lewisgoddard enabled auto-merge (squash) February 28, 2026 13:40
Copy link
Contributor

@RMcNeely RMcNeely left a comment

Choose a reason for hiding this comment

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

I'm not sure that this will always fix everything, couldn't it still be resolving while someone hits the download link? Seems like we need check the promise is resolved first before we pass the data in. That said I'm not sure if this is a realistic worry and if it's broken now its probably best to just fix it this way.

@lewisgoddard lewisgoddard force-pushed the fix-architecture-tracking branch from a48b7d9 to c397bdb Compare March 10, 2026 23:14
@lewisgoddard lewisgoddard force-pushed the fix-architecture-tracking branch from c397bdb to d5853e0 Compare March 10, 2026 23:16
@lewisgoddard
Copy link
Member Author

@RMcNeely I've changed it to use class based tracking like magnet and http, no async methods at all. Not sure why we were trying to track the viewers architecture when the download tracking tracks the download attributes for everything else.

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