We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc528ba commit d45ec35Copy full SHA for d45ec35
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "capture-template",
3
- "version": "1.0.12",
+ "version": "1.0.13",
4
"description": "This library is responsible for expanding a template web page and then capturing it PNG or PDF.",
5
"main": "build/index.js",
6
"types": "build/index.d.ts",
src/web-page-renderer.ts
@@ -1,7 +1,5 @@
import { ICaptureOptions } from "./index";
-const Nightmare = require("nightmare");
-
declare const document: any;
7
/**
@@ -130,6 +128,7 @@ export class WebPageRenderer implements IWebPageRenderer {
130
128
}
131
129
132
+ const Nightmare = require("nightmare");
133
this.nightmare = new Nightmare(nightmareOptions);
134
135
this.nightmare.on('crashed', (evt: any) => {
0 commit comments