mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -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
|
@ -608,9 +608,9 @@ class Dialog {
|
||||||
this.$el = $(id);
|
this.$el = $(id);
|
||||||
this.$el.querySelectorAll('[close]').forEach(el => el.addEventListener('click', _ => this.hide()));
|
this.$el.querySelectorAll('[close]').forEach(el => el.addEventListener('click', _ => this.hide()));
|
||||||
this.$autoFocus = this.$el.querySelector('[autofocus]');
|
this.$autoFocus = this.$el.querySelector('[autofocus]');
|
||||||
Events.on('peer-disconnected', e => this._onPeerDisconnected(e.detail));
|
|
||||||
|
|
||||||
this.$discoveryWrapper = $$('footer .discovery-wrapper');
|
this.$discoveryWrapper = $$('footer .discovery-wrapper');
|
||||||
|
|
||||||
|
Events.on('peer-disconnected', e => this._onPeerDisconnected(e.detail));
|
||||||
}
|
}
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
|
@ -2751,6 +2751,7 @@ Events.on('load', () => {
|
||||||
c.style.opacity = "1";
|
c.style.opacity = "1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Events.on('translation-loaded', _ => init());
|
||||||
Events.on('bg-resize', _ => init());
|
Events.on('bg-resize', _ => init());
|
||||||
window.onresize = _ => Events.fire('bg-resize');
|
window.onresize = _ => Events.fire('bg-resize');
|
||||||
|
|
||||||
|
@ -2769,8 +2770,6 @@ Events.on('load', () => {
|
||||||
drawCircle(ctx, dw * i + frame + 33);
|
drawCircle(ctx, dw * i + frame + 33);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(_ => init(), 300);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
document.changeFavicon = function (src) {
|
document.changeFavicon = function (src) {
|
||||||
|
|
|
@ -610,9 +610,9 @@ class Dialog {
|
||||||
this.$el = $(id);
|
this.$el = $(id);
|
||||||
this.$el.querySelectorAll('[close]').forEach(el => el.addEventListener('click', _ => this.hide()));
|
this.$el.querySelectorAll('[close]').forEach(el => el.addEventListener('click', _ => this.hide()));
|
||||||
this.$autoFocus = this.$el.querySelector('[autofocus]');
|
this.$autoFocus = this.$el.querySelector('[autofocus]');
|
||||||
Events.on('peer-disconnected', e => this._onPeerDisconnected(e.detail));
|
|
||||||
|
|
||||||
this.$discoveryWrapper = $$('footer .discovery-wrapper');
|
this.$discoveryWrapper = $$('footer .discovery-wrapper');
|
||||||
|
|
||||||
|
Events.on('peer-disconnected', e => this._onPeerDisconnected(e.detail));
|
||||||
}
|
}
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
|
@ -2752,6 +2752,7 @@ Events.on('load', () => {
|
||||||
c.style.opacity = "1";
|
c.style.opacity = "1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Events.on('translation-loaded', _ => init());
|
||||||
Events.on('bg-resize', _ => init());
|
Events.on('bg-resize', _ => init());
|
||||||
window.onresize = _ => Events.fire('bg-resize');
|
window.onresize = _ => Events.fire('bg-resize');
|
||||||
|
|
||||||
|
@ -2770,8 +2771,6 @@ Events.on('load', () => {
|
||||||
drawCircle(ctx, dw * i + frame + 33);
|
drawCircle(ctx, dw * i + frame + 33);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(_ => init(), 300);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
document.changeFavicon = function (src) {
|
document.changeFavicon = function (src) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue