UNPKG

capacitor-webview-print

Version:

This is a Capacitor plugin for printing the webview. It supports the Web, iOS and Android Platform.

10 lines 354 B
import { WebPlugin } from '@capacitor/core'; export class WebviewPrintWeb extends WebPlugin { async print(options) { const documentTitleTemp = document.title; document.title = options.name; window.onafterprint = () => (document.title = documentTitleTemp); return window.print(); } } //# sourceMappingURL=web.js.map