Skip to content

Instantly share code, notes, and snippets.

@oyiptong
Created March 29, 2020 08:53
Show Gist options
  • Save oyiptong/d363076ae06967fe725708fc8f729958 to your computer and use it in GitHub Desktop.
Save oyiptong/d363076ae06967fe725708fc8f729958 to your computer and use it in GitHub Desktop.
File Handling
{
"manifest_version": 2,
"description": "Native FS Demo Editor",
"name": "Native FS Editor",
"short_name": "nativefs_ed",
"start_url": ".",
"display": "standalone",
"background_color": "grey",
"icons": [
{
"src": "/icon_192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icon_512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"file_handlers": [
{
"action": ".",
"accept": {
"text/csv": [".csv"]
}
},
{
"action": ".",
"accept": {
"text/plain": [".txt", ".md", ".info", ".log"]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment