Contents
Methods
installExtension
opr.addons.installExtension(
string id,
function success_callback,
function error_callback
)
Retrieves details about the specified Stash item.
Parameters
id (String)
The extension ID of the extension being called.
success_callback (function)
Function called when the installation finishes successfully. It takes no arguments.
error_callback (function)
Function called when the installation fails. It takes a single string argument, the error message.
Success Callback
The success_callback parameter should specify a function that looks like this:
function() { … };
Error Callback
The error_callback parameter should specify a function that looks like this:
function(String errorMessage) { … };