|
|
|
@ -172,7 +172,10 @@ export default class Updater extends Builtin {
|
|
|
|
|
if (!update.updateId) {
|
|
|
|
|
throw new Error('no update ID provided');
|
|
|
|
|
}
|
|
|
|
|
const entity = vizality.manager[toPlural(update.type)].get(update.addonId);
|
|
|
|
|
let entity = window.vizality;
|
|
|
|
|
if (update.updateId !== 'vizality') {
|
|
|
|
|
entity = vizality.manager[toPlural(update.type)].get(update.addonId);
|
|
|
|
|
}
|
|
|
|
|
const success = await entity._update(force);
|
|
|
|
|
if (success) {
|
|
|
|
|
this._removeUpdate(update);
|
|
|
|
|