fix(core): update
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
// compatibility
|
||||
declare global {
|
||||
interface Element { }
|
||||
interface Node { }
|
||||
interface NodeListOf<TNode = Node> { }
|
||||
interface Element {}
|
||||
interface Node {}
|
||||
interface NodeListOf<TNode = Node> {}
|
||||
}
|
||||
|
||||
// normal
|
||||
|
@ -1 +0,0 @@
|
||||
import * as plugins from './smartpdf.plugins';
|
@ -34,14 +34,14 @@ export class SmartPdf {
|
||||
});
|
||||
}
|
||||
|
||||
async close () {
|
||||
async close() {
|
||||
const done = plugins.smartpromise.defer<void>();
|
||||
this.htmlServerInstance.close(() => {
|
||||
done.resolve();
|
||||
});
|
||||
await this.headlessBrowser.close();
|
||||
await done.promise;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a pdf for a given html string;
|
||||
|
Reference in New Issue
Block a user