Fix buttons on about:support when not building updater.

This commit is contained in:
Pale Moon
2017-02-26 21:58:47 +01:00
committed by roytam1
parent f73e220d0b
commit a3352637af
+2
View File
@@ -643,10 +643,12 @@ function safeModeRestart() {
* Set up event listeners for buttons.
*/
function setupEventListeners(){
#ifdef MOZ_UPDATER
$("show-update-history-button").addEventListener("click", function (event) {
var prompter = Cc["@mozilla.org/updates/update-prompt;1"].createInstance(Ci.nsIUpdatePrompt);
prompter.showUpdateHistory(window);
});
#endif
$("reset-box-button").addEventListener("click", function (event){
ResetProfile.openConfirmationDialog(window);
});