mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-23 16:26:17 -04:00
Redraw background when language is changed
This commit is contained in:
parent
7a299a5c98
commit
f75e6e85b2
2 changed files with 6 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue