Browse code

[tbird] BM-15580 Fix: tb 60.x support, ask for restart when extension was updated

Nicolas Lascombes authored on 13/01/2020 10:59:30
Showing 1 changed files
... ...
@@ -410,7 +410,7 @@ var gBMOverlay = {
410 410
 		let self = this;
411 411
 		AddonManager.addInstallListener({
412 412
 			onInstallEnded: function(addonInstall, addon) {
413
-				if (addon && addon.id == "bm-connector-tb@blue-mind.net" && addon.pendingOperations) {
413
+				if (addon && addon.id == "bm-connector-tb@blue-mind.net") {
414 414
                     gBMOverlay._logger.info("bm-connector-tb@blue-mind.net install postponed -> ask for restart");
415 415
 					self._timer.init(function() {
416 416
 						let ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]