mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-13 12:50:55 -08:00
fix: page already defined
This commit is contained in:
parent
51c4be48c5
commit
3da426d4df
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ ipcRenderer.on(WikiChannel.printTiddler, async (event, tiddlerName?: string) =>
|
|||
`) as Promise<string>);
|
||||
}
|
||||
await webFrame.executeJavaScript(`
|
||||
const page = (${printer.printTiddler.toString()})('${tiddlerName}');
|
||||
var page = (${printer.printTiddler.toString()})('${tiddlerName}');
|
||||
page?.print?.();
|
||||
page?.close?.();
|
||||
`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue