Skip to content

Commit 44e2a66

Browse files
committed
update version and ignore javascript
1 parent 09a2b40 commit 44e2a66

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

makefile renamed to Makefile

File renamed without changes.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/loeffel-io/mail-downloader
22

3-
go 1.12
3+
go 1.13
44

55
require (
66
github.com/SebastiaanKlippert/go-wkhtmltopdf v1.5.0

mail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (mail *mail) generatePdf() ([]byte, error) {
124124
}
125125

126126
page := wkhtmltopdf.NewPageReader(bytes.NewReader(body))
127-
page.LoadMediaErrorHandling.Set("ignore")
127+
page.DisableJavascript.Set(true)
128128
page.Encoding.Set("UTF-8")
129129

130130
pdfg.AddPage(page)

0 commit comments

Comments
 (0)