Repository navigation
Claude/amazing newton 4op8tt - #7
Merged
Merged
Conversation
The button could only ever report a version difference and link to the
release page: an extension has no API to rewrite its own files, and
requestUpdateCheck() — the API that actually installs an update — only
works where Chrome owns the update channel.
Chrome adds an "update_url" to the manifest of extensions it installed
itself, so background.js uses that to pick a path. On a store install it
calls requestUpdateCheck() and then reload() to restart into the new
version immediately; an unpacked copy keeps the existing GitHub Releases
comparison and download link, since nothing else is possible there.
requestUpdateCheck()'s callback shape differs between MV2 ((status,
details)) and MV3 (a single { status, version }), so the wrapper reads
whichever arrived rather than pinning one.
No onUpdateAvailable listener: registering one makes Chrome hold updates
back until the extension calls reload() itself, and restarting unprompted
would kill an Autoplay run mid-round. Without one Chrome installs new
versions once the extension goes idle, and the button forces it now.
Also drops the innerHTML interpolation of GitHub API fields in the
status line in favour of building the link as DOM nodes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012NHY2G9nsiWSNXvMU6se6m
The manifest had no icons field and the repo shipped no image, so Chrome fell back to a generated letter tile and the Web Store listing had nothing to upload. Adds a map-pin mark at the four sizes Chrome asks for (16/32/48/128) and lists icons/ in the release zip, which names its contents explicitly and would otherwise leave them out. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012NHY2G9nsiWSNXvMU6se6m
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.