N
updates
namespace updatesFunctions
F
apply(id: string): Promise<boolean>
Applies the pending update of one addon found by the last check.
Returns
Whether the addon now runs the new version.
F
applyAll(): Promise<void>
Applies every pending update except newer versions of addons held on a version.
Returns
A promise that settles once every update was applied or failed.
F
check(): Promise<void>
Checks every installed addon and the loader for updates. Concurrent calls share one check.
Returns
A promise that settles once the check finished.
F
checkLoader(): Promise<string | null>
Asks the update server whether a newer loader is available for this device.
Returns
The newer loader's version, or null when there is none or the check failed.