enabled
Summary
Indicates whether or not Software Installation is enabled for this client machine.
Method of
InstallTrigger object
Syntax
JavaScript
Copy Code
Boolean enabled ();
Parameters
None
Returns
True if Software Installation is enabled for this client machine; otherwise, false. The method reflects the value of the Software Installation preference in the user interface, and of the xpinstall.enabled
preference in pref.js.
Example
The following code uses the startSoftwareUpdate method to unconditionally trigger a download from http://royalairways/royalpkg.xpi
as long as Software Installation is enabled on the browser:
Copy Code
if (InstallTrigger.enabled() ) { InstallTrigger.startSoftwareUpdate ("http://royalair.com/rasoft.xpi"); }
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/installtrigger/enabled