mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Also Expose printToPDF to BrowserWindow.
This commit is contained in:
@@ -84,5 +84,6 @@ BrowserWindow::toggleDevTools = -> @webContents.toggleDevTools()
|
||||
BrowserWindow::inspectElement = -> @webContents.inspectElement.apply @webContents, arguments
|
||||
BrowserWindow::inspectServiceWorker = -> @webContents.inspectServiceWorker()
|
||||
BrowserWindow::print = -> @webContents.print.apply @webContents, arguments
|
||||
BrowserWindow::printToPDF = -> @webContents.printToPDF.apply @webContents, arguments
|
||||
|
||||
module.exports = BrowserWindow
|
||||
|
||||
@@ -558,6 +558,10 @@ process.
|
||||
|
||||
Same with `webContents.print([options])`
|
||||
|
||||
### BrowserWindow.printToPDF(options, callback)
|
||||
|
||||
Same with `webContents.printToPDF(options, callback)`
|
||||
|
||||
### BrowserWindow.loadUrl(url, [options])
|
||||
|
||||
Same with `webContents.loadUrl(url, [options])`.
|
||||
|
||||
Reference in New Issue
Block a user