All of the logic working with the datastore occurs in the background scripts. Front-end pages communicate with these scripts via message ports.
Open the view named name
in a new tab. Returns an empty object.
Close the view named name
if it's open. Returns an empty object.
Open website passed as url
in a new tab. Returns an empty object.
List all the items in the datastore. Returns an array of summaries of the items in the items
field.
Add an item (in the item
attribute) to the datastore. Returns the updated item in the item
field with its id
field filled out.
Update an existing item (in the item
attribute) in the datastore. Returns the updated item in the item
field.
Remove the item with ID id
from the datastore. Returns an empty object.
Fetches the item with ID id
from the datastore. Returns the item object in the item
field.
Record a telemetry event with method method
, object object
, and extra extra
(value is null
).
Increment a telemetry counter with name
by some value
.