diff --git a/node_modules/note.js b/node_modules/note.js index 81edc79b..fc4bc613 100644 --- a/node_modules/note.js +++ b/node_modules/note.js @@ -1682,6 +1682,9 @@ var Note = { if(!serverNoteId) { callback({Ok: false, Msg: 'noteNotExists'}); } else { + if (!Api) { + Api = require('api'); + } Api.exportPdf(serverNoteId, callback); } }) diff --git a/note.html b/note.html index d0b53b33..c0f78fbc 100755 --- a/note.html +++ b/note.html @@ -601,7 +601,7 @@ function log(o) {