Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Fix for "GetItNow" action behaviour #14691

Merged
merged 2 commits into from
Apr 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/extensions/default/AutoUpdate/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ define(function (require, exports, module) {

//Initiate the auto update, with update params
initiateAutoUpdate(updateParams);

//Send a truthy value to ensure caller is informed about successful initialization of auto-update
return true;
}


Expand Down
4 changes: 2 additions & 2 deletions src/utils/UpdateNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ define(function (require, exports, module) {
*/
function handleUpdateProcess(updates) {
var handler = _updateProcessHandler || _defaultUpdateProcessHandler;
var success = handler(updates);
if (_updateProcessHandler && !success) {
var initSuccess = handler(updates);
if (_updateProcessHandler && !initSuccess) {
// Give a chance to default handler in case
// the auot update mechanism has failed.
_defaultUpdateProcessHandler(updates);
Expand Down