blob: 8eaa8157cfb28981ed9b643cf672f3f9ce1a8115 [file] [log] [blame]
import {injectScript} from '../../../common/contentScriptsUtils.js';
import MWI18nServer from '../../../common/mainWorldI18n/Server.js';
import UpdateBanner from './banner/index.js';
export default class UpdateHandler {
constructor() {
new MWI18nServer();
injectScript(chrome.runtime.getURL('updateHandlerLitComponents.bundle.js'));
this.updateBanner = new UpdateBanner();
}
handle(reason) {
console.debug(`Handling extension update (reason: ${reason}).`);
this.updateBanner.addBanner(reason);
}
}