Skip to content

Commit

Permalink
Upgarde SwG to 0.1.21-55a6698 (#14014)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Voytenko committed Mar 15, 2018
1 parent b715a91 commit 7ef1c56
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions third_party/subscriptions-project/swg.js
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** Version: 0.1.21-52536000 */
/** Version: 0.1.21-55a6698 */
'use strict';
import { ActivityPorts } from 'web-activities/activity-ports';

Expand Down Expand Up @@ -1438,12 +1438,25 @@ class DialogManager {
// Give a small amount of time for another view to take over the dialog.
setTimeout(() => {
if (this.dialog_ && this.dialog_.getCurrentView() == view) {
this.dialog_.close();
this.dialog_ = null;
this.openPromise_ = null;
this.close_();
}
}, 100);
}

/**
*/
completeAll() {
if (this.dialog_) {
this.close_();
}
}

/** @private */
close_() {
this.dialog_.close();
this.dialog_ = null;
this.openPromise_ = null;
}
}


Expand Down Expand Up @@ -2071,7 +2084,7 @@ function feUrl(url, prefix = '') {
*/
function feArgs(args) {
return Object.assign(args, {
'_client': 'SwG 0.1.21-52536000',
'_client': 'SwG 0.1.21-55a6698',
});
}

Expand Down Expand Up @@ -3924,6 +3937,7 @@ class ConfiguredRuntime {
/** @override */
reset() {
this.entitlementsManager_.reset();
this.dialogManager_.completeAll();
}

/** @override */
Expand Down

0 comments on commit 7ef1c56

Please sign in to comment.