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

All: Added more export options including jpz format

This commit is contained in:
Laurent Cozic
2018-02-23 19:32:19 +00:00
parent c6698eaea6
commit 9f8a46b9d9
8 changed files with 248 additions and 121 deletions

View File

@ -28,8 +28,7 @@ class Cache {
Cache.storage = async function() {
if (Cache.storage_) return Cache.storage_;
Cache.storage_ = require('node-persist');
const osTmpdir = require('os-tmpdir');
await Cache.storage_.init({ dir: osTmpdir() + '/joplin-cache', ttl: 1000 * 60 });
await Cache.storage_.init({ dir: require('os').tmpdir() + '/joplin-cache', ttl: 1000 * 60 });
return Cache.storage_;
}