mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
* Initial file_handlers demo * Fix code and update README with correct UI text * Update README with screenshot * Add minimum_chrome_version field * Apply suggestions from code review Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Joe Medley <jmedley@google.com> --------- Co-authored-by: amysteamdev <37001393+AmySteam@users.noreply.github.com> Co-authored-by: Joe Medley <jmedley@google.com>
17 lines
383 B
JSON
17 lines
383 B
JSON
{
|
|
"name": "File Handling Demo",
|
|
"version": "1.0",
|
|
"minimum_chrome_version": "120",
|
|
"description": "Shows how to use the file_handlers manifest key with the web platform's Launch Handler API.",
|
|
"manifest_version": 3,
|
|
"file_handlers": [
|
|
{
|
|
"name": "TXT file",
|
|
"action": "/view-file.html",
|
|
"accept": {
|
|
"text/plain": [".txt"]
|
|
}
|
|
}
|
|
]
|
|
}
|