Skip to content

Commit b1e25c0

Browse files
committed
chore(runner): set background ignore
1 parent 3268da9 commit b1e25c0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/plugins/background.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ export const runPluginBackground = async (instance: pdfeasy) => {
55
if (instance.options?.plugins) {
66
for (const plugin of instance.options.plugins) {
77
if (plugin.background && instance.globals.__NEW_PAGE__) {
8-
// @ts-ignore
9-
const res = plugin.background(instance.pdfkit.page)
8+
const res = plugin.background(instance.pdfkit!.page)
109

1110
if (res) await setBackground(instance, res)
1211
}

0 commit comments

Comments
 (0)