Namespace: addon

addon

Source:

Methods

(static) install(path, temporaryopt) → {Promise.<string>}

Install a Firefox addon.

If the addon is restartless, it can be used right away. Otherwise a restart is required.

Temporary addons will automatically be uninstalled on shutdown and do not need to be signed, though they must be restartless.

Parameters:
Name Type Attributes Description
path string

Full path to the extension package archive.

temporary boolean <optional>

True to install the addon temporarily, false (default) otherwise.

Source:
Throws:

If there is a problem installing the addon.

Type
UnknownError
Returns:

Addon ID.

Type
Promise.<string>

(static) uninstall(id) → {Promise}

Uninstall a Firefox addon.

If the addon is restartless it will be uninstalled right away. Otherwise, Firefox must be restarted for the change to take effect.

Parameters:
Name Type Description
id string

ID of the addon to uninstall.

Source:
Throws:

If there is a problem uninstalling the addon.

Type
UnknownError
Returns:
Type
Promise