[FIX] gamification, web: Edge does not support obj spread operator
As of August 20 2019, Microsoft Edge partially supports ECMA2018. For instance, `Promise.prototype.finally()` can be used, but the spread operator does not work on objects. Task-ID 2056070
This commit is contained in:
@@ -11,10 +11,9 @@ CrashManager.include({
|
||||
* @override
|
||||
*/
|
||||
getMapTitle() {
|
||||
return {
|
||||
...this._super(...arguments),
|
||||
return Object.assign({}, this._super(...arguments), {
|
||||
karma_error: _lt("Karma Error"),
|
||||
};
|
||||
});
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -14,12 +14,11 @@ const PublicCrashManager = CrashManager.extend({
|
||||
* @override
|
||||
*/
|
||||
_displayWarning(message, title, options) {
|
||||
this.displayNotification({
|
||||
...options,
|
||||
this.displayNotification(Object.assign({}, options, {
|
||||
title,
|
||||
message,
|
||||
sticky: true,
|
||||
});
|
||||
}));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -317,10 +317,9 @@ var CrashManager = AbstractService.extend({
|
||||
* @param {Object} options
|
||||
*/
|
||||
_displayWarning: function (message, title, options) {
|
||||
return new WarningDialog(this, {
|
||||
...options,
|
||||
return new WarningDialog(this, Object.assign({}, options, {
|
||||
title,
|
||||
}, {
|
||||
}), {
|
||||
message,
|
||||
}).open();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user