Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/alarms/getall/index.md
6581 views
------{{AddonSidebar()}}
Gets all active alarms for the extension.
This is an asynchronous function that returns a Promise.
Syntax
Parameters
None.
Return value
A Promise that will be fulfilled with an array of Alarm objects. Each of these represents an active alarm that belongs to the extension. If no alarms are active, the array will be empty.
Examples
{{WebExtExamples}}
Browser compatibility
{{Compat}}
Note: This API is based on Chromium's
chrome.alarmsAPI.