-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add downloads samples #934
base: main
Are you sure you want to change the base?
Conversation
The special thing is that eval was used before download_filename_controller to support writing js to modify the name of the downloaded file, but this cannot be used in MV3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few initial thoughts - thanks for your patience on this one!
api-samples/downloads/download_filename_controller/service-worker.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't inherently anything wrong with what you wrote. The issue is that we need consistency for most of the changes I requested. It's no reasonable to expect a guest contributor to know that.
api-samples/downloads/download_filename_controller/manifest.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Joe Medley <[email protected]>
READMEs and Descriptions: LGTM |
Co-authored-by: Joe Medley <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I stumbled on a typo when I was looking at where you replaced messages.json text with manifest.json text. I think I made the typo in one of my suggestions. Sorry about that.
Could you add the example for download open. I could not using it currently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more
suggest({ | ||
filename: item.filename, | ||
conflictAction: 'overwrite' | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My addd
No description provided.