fix(prerender): local references to window/document

This commit is contained in:
Manu Mtz.-Almeida
2018-04-19 13:26:49 +02:00
parent 86a6cde4a1
commit 78bd146ad2
42 changed files with 174 additions and 139 deletions

View File

@ -17,6 +17,7 @@ export class BackButton {
@Element() el: HTMLElement;
@Prop({ context: 'config' }) config: Config;
@Prop({ context: 'window' }) win: Window;
/**
* The color to use from your Sass `$colors` map.
@ -54,7 +55,7 @@ export class BackButton {
ev.preventDefault();
nav.pop();
} else if (this.defaultHref) {
openURL(this.defaultHref, ev, 'back');
openURL(this.win, this.defaultHref, ev, 'back');
}
}