1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Getting note HTML rendering to work

This commit is contained in:
Laurent Cozic
2017-11-05 16:51:03 +00:00
parent 09db5ff1d8
commit 3de7534d1d
8 changed files with 87 additions and 10 deletions

View File

@ -55,6 +55,11 @@ function shimInit() {
const nodeFetch = require('node-fetch');
shim.readLocalFileBase64 = (path) => {
const data = fs.readFileSync(path);
return new Buffer(data).toString('base64');
}
shim.fetch = async function(url, options = null) {
if (!options) options = {};
if (!options.timeout) options.timeout = 1000 * 120; // ms