1
0
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:
Laurent Cozic 2022-12-28 16:12:36 +00:00
parent ed71f68e1d
commit d2aab6536c

View File

@ -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);