You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-03 23:50:33 +02:00
Fixed linter error
This commit is contained in:
@ -78,7 +78,11 @@ export default class InteropServiceHelper {
|
|||||||
shim.setTimeout(async () => {
|
shim.setTimeout(async () => {
|
||||||
if (target === 'pdf') {
|
if (target === 'pdf') {
|
||||||
try {
|
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\',\'\'))');
|
win.webContents.executeJavaScript('document.querySelectorAll(\'details\').forEach(el=>el.setAttribute(\'open\',\'\'))');
|
||||||
const data = await win.webContents.printToPDF(options);
|
const data = await win.webContents.printToPDF(options);
|
||||||
resolve(data);
|
resolve(data);
|
||||||
|
Reference in New Issue
Block a user