mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 00:06:35 +00:00
retru importHref once to solve a webkit refresh issue (#958)
This commit is contained in:
parent
7377db312b
commit
f87dbc5735
@ -99,13 +99,24 @@ class PartialPanelResolver extends Polymer.Element {
|
||||
},
|
||||
|
||||
() => {
|
||||
this.errorLoading = true;
|
||||
// a single retry of importHref in the error callback fixes a webkit refresh issue
|
||||
if (!this.retrySetPanelForWebkit(panel)) {
|
||||
this.errorLoading = true;
|
||||
}
|
||||
},
|
||||
|
||||
true /* async */
|
||||
);
|
||||
}
|
||||
|
||||
retrySetPanelForWebkit(panel) {
|
||||
if (this._retryingPanelChanged) {
|
||||
return false;
|
||||
}
|
||||
this._retryingPanelChanged = true;
|
||||
return this.panelChanged(panel);
|
||||
}
|
||||
|
||||
updateAttributes() {
|
||||
var customEl = Polymer.dom(this.$.panel).lastChild;
|
||||
if (!customEl) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user