retru importHref once to solve a webkit refresh issue (#958)

This commit is contained in:
NovapaX 2018-02-28 22:59:01 +01:00 committed by Paulus Schoutsen
parent 7377db312b
commit f87dbc5735

View File

@ -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 */ true /* async */
); );
} }
retrySetPanelForWebkit(panel) {
if (this._retryingPanelChanged) {
return false;
}
this._retryingPanelChanged = true;
return this.panelChanged(panel);
}
updateAttributes() { updateAttributes() {
var customEl = Polymer.dom(this.$.panel).lastChild; var customEl = Polymer.dom(this.$.panel).lastChild;
if (!customEl) return; if (!customEl) return;