summaryrefslogtreecommitdiff
path: root/print/resources
diff options
context:
space:
mode:
authorrejbasket <39080670+rejbasket@users.noreply.github.com>2023-05-22 22:33:19 +0200
committerGitHub <noreply@github.com>2023-05-22 22:33:19 +0200
commitef6f6580df6e8fbce913eecc1fe7e0f8caf1315b (patch)
treec1119a5d1affd44ad27e60cc6981ac98534c518d /print/resources
parentda54f104e6bf5d0e98f7479cf1d060c76e0b01f2 (diff)
Update electron version to v14.2.9 (#2214)
Authored-by: rejbasket Co-authored-by: Kaalleen Co-authored-by: Lex Neva
Diffstat (limited to 'print/resources')
-rw-r--r--print/resources/inkstitch.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/print/resources/inkstitch.js b/print/resources/inkstitch.js
index 8bce3912..382ced3b 100644
--- a/print/resources/inkstitch.js
+++ b/print/resources/inkstitch.js
@@ -1,5 +1,3 @@
-var electron = require('electron');
-
$.postJSON = function(url, data, success=null) {
return $.ajax(url, {
type: 'POST',
@@ -378,14 +376,14 @@ $(function() {
});
$('button.print').click(function() {
- var pageSize = $('select#printing-size').find(':selected').text();
- electron.ipcRenderer.send('open-pdf', pageSize)
+ var pageSize = $('select#printing-size').find(':selected').text();
+ window.inkstitchAPI.openpdf(pageSize)
});
$('button.save-pdf').click(function() {
- var pageSize = $('select#printing-size').find(':selected').text();
- electron.ipcRenderer.send('save-pdf', pageSize)
- });
+ var pageSize = $('select#printing-size').find(':selected').text();
+ window.inkstitchAPI.savepdf(pageSize)
+ });
$('button.settings').click(function(){
$('#settings-ui').show();