mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-14 23:09:46 -04:00
Reformat
Former-commit-id: d8ab89e6885c4793e0916c6df99335c56b1c1910 [formerly 6510e30dd62a9ece93170ed0f53e4e135332f967] Former-commit-id: 7b6091bdf060279941a24c6a7c39368b8eed3c25
This commit is contained in:
parent
48feb321dd
commit
383cf4b11a
@ -266,8 +266,8 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'images', 'cooki
|
||||
document.getElementById('articleContent').contentDocument.head.innerHTML +=
|
||||
'\n<script type="text/javascript">window.onload=function() {\n' +
|
||||
' alert("You may print, but after you press Print, the app will crash\\n" +\n' +
|
||||
' "and will need to be re-started.\\n" +\n' +
|
||||
' "This bug will be fixed in the next version of Electron.");\n' +
|
||||
' "and will need to be re-started. This bug will be fixed\\n" +\n' +
|
||||
' "in the next version of Electron.");\n' +
|
||||
' window.print();\n' +
|
||||
'};<\/script>';
|
||||
//html = html.replace(/(<\/head>\s*)/i, '<script type="text/javascript">window.onload=window.print();<\/script>\n$1');
|
||||
|
Loading…
x
Reference in New Issue
Block a user