mirror of
https://github.com/laurent22/joplin.git
synced 2025-02-16 19:47:40 +02:00
Fixed linter error
This commit is contained in:
parent
ed71f68e1d
commit
d2aab6536c
@ -78,7 +78,11 @@ export default class InteropServiceHelper {
|
||||
shim.setTimeout(async () => {
|
||||
if (target === 'pdf') {
|
||||
try {
|
||||
// The below line "opens" all <details> tags before printing. This assures that the contents of the tag are visible in printed pdfs. Fixes https://github.com/laurent22/joplin/issues/6254.
|
||||
// The below line "opens" all <details> tags
|
||||
// before printing. This assures that the
|
||||
// contents of the tag are visible in printed
|
||||
// pdfs.
|
||||
// https://github.com/laurent22/joplin/issues/6254.
|
||||
win.webContents.executeJavaScript('document.querySelectorAll(\'details\').forEach(el=>el.setAttribute(\'open\',\'\'))');
|
||||
const data = await win.webContents.printToPDF(options);
|
||||
resolve(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user