fix: Fix downloads schemas
- Alphabetically sort keys - Add `"fallbackToNoCallback": true` to `open` and `show` because these methods do currently not take any callbacks in Chrome: https://developer.chrome.com/extensions/downloads#method-open https://developer.chrome.com/extensions/downloads#method-show - Chrome has a `downloads.acceptDanger` method, but Firefox does not, so this is not included in the schema.
This commit is contained in:
parent
fc25bd3e4c
commit
597788817e
|
@ -219,11 +219,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"downloads": {
|
"downloads": {
|
||||||
"download": {
|
"cancel": {
|
||||||
"minArgs": 1,
|
"minArgs": 1,
|
||||||
"maxArgs": 1
|
"maxArgs": 1
|
||||||
},
|
},
|
||||||
"cancel": {
|
"download": {
|
||||||
"minArgs": 1,
|
"minArgs": 1,
|
||||||
"maxArgs": 1
|
"maxArgs": 1
|
||||||
},
|
},
|
||||||
|
@ -237,7 +237,8 @@
|
||||||
},
|
},
|
||||||
"open": {
|
"open": {
|
||||||
"minArgs": 1,
|
"minArgs": 1,
|
||||||
"maxArgs": 1
|
"maxArgs": 1,
|
||||||
|
"fallbackToNoCallback": true
|
||||||
},
|
},
|
||||||
"pause": {
|
"pause": {
|
||||||
"minArgs": 1,
|
"minArgs": 1,
|
||||||
|
@ -257,7 +258,8 @@
|
||||||
},
|
},
|
||||||
"show": {
|
"show": {
|
||||||
"minArgs": 1,
|
"minArgs": 1,
|
||||||
"maxArgs": 1
|
"maxArgs": 1,
|
||||||
|
"fallbackToNoCallback": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extension": {
|
"extension": {
|
||||||
|
|
Loading…
Reference in New Issue