Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "discard",
- "type": "function",
- "description": "discards one or more tabs.",
- "async": true,
- "parameters": [
- {
- "name": "tabIds",
- "description": "The tab or list of tabs to discard.",
- "choices": [
- {"type": "integer", "minimum": 0},
- {"type": "array", "items": {"type": "integer", "minimum": 0}}
- ]
- },
- {
- "choices": [
- {"type": "object",
- "name": "discardProperties",
- "optional": true,
- "properties": {
- "forceDiscard": {
- "type": "boolean",
- "optional": true,
- "description": "Forces discard regardless of whether an onbeforeunload handler wants to prompt. Will suppress display of prompt, but will run all onbeforeunload handlers. Default is `false`."
- }
- }
- }
- ]
- }
- ]
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement