canmove, Confirmed users
1,570
edits
| Line 5: | Line 5: | ||
==getInstallForURL== | ==getInstallForURL== | ||
Creates a new object representing an add-on installation from a url. | Creates a new object representing an add-on installation from a url. This may perform a request to the URL to determine the type of add-on before passing an [[#AddonInstall|AddonInstall]] onto the provided callback. | ||
;url :The URL to install the add-on from | |||
;callback :A function to pass an [[#AddonInstall|AddonInstall]] to when created | |||
;hash :A hash of the file to be downloaded (optional) | |||
;name :A human readable name for the add-on to be displayed during install (optional) | ;name :A human readable name for the add-on to be displayed during install (optional) | ||
;version :The version of the add-on to be installed (optional) | ;version :The version of the add-on to be installed (optional) | ||
==getInstallForFile== | ==getInstallForFile== | ||