Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
fix: options.captureAfterElementExists capacity for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun committed Sep 28, 2018
1 parent 1bf0311 commit b0f9b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion es5-autogenerated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function PrerenderSPAPlugin() {
rendererOptions.renderAfterDocumentEvent = this._options.captureAfterDocumentEvent;
}

if (this._options.captureAfterDocumentEvent) {
if (this._options.captureAfterElementExists) {
console.warn('[prerender-spa-plugin] captureAfterElementExists has been renamed to renderAfterElementExists and should be moved to the renderer options.');
rendererOptions.renderAfterElementExists = this._options.captureAfterElementExists;
}
Expand Down
2 changes: 1 addition & 1 deletion es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function PrerenderSPAPlugin (...args) {
rendererOptions.renderAfterDocumentEvent = this._options.captureAfterDocumentEvent
}

if (this._options.captureAfterDocumentEvent) {
if (this._options.captureAfterElementExists) {
console.warn('[prerender-spa-plugin] captureAfterElementExists has been renamed to renderAfterElementExists and should be moved to the renderer options.')
rendererOptions.renderAfterElementExists = this._options.captureAfterElementExists
}
Expand Down

0 comments on commit b0f9b6c

Please sign in to comment.