Redraw background when language is changed

This commit is contained in:
schlagmichdoch 2023-10-11 17:56:40 +02:00
parent 7a299a5c98
commit f75e6e85b2
2 changed files with 6 additions and 8 deletions

View file

@ -610,9 +610,9 @@ class Dialog {
this.$el = $(id);
this.$el.querySelectorAll('[close]').forEach(el => el.addEventListener('click', _ => this.hide()));
this.$autoFocus = this.$el.querySelector('[autofocus]');
Events.on('peer-disconnected', e => this._onPeerDisconnected(e.detail));
this.$discoveryWrapper = $$('footer .discovery-wrapper');
Events.on('peer-disconnected', e => this._onPeerDisconnected(e.detail));
}
show() {
@ -2752,6 +2752,7 @@ Events.on('load', () => {
c.style.opacity = "1";
}
Events.on('translation-loaded', _ => init());
Events.on('bg-resize', _ => init());
window.onresize = _ => Events.fire('bg-resize');
@ -2770,8 +2771,6 @@ Events.on('load', () => {
drawCircle(ctx, dw * i + frame + 33);
}
}
setTimeout(_ => init(), 300);
});
document.changeFavicon = function (src) {