fix export in electron (auth problem)

This commit is contained in:
azivner
2018-02-27 09:47:05 -05:00
parent 2acff07368
commit ee0833390a
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
"use strict";
function exportSubTree(noteId) {
const url = getHost() + "/api/export/" + noteId;
const url = getHost() + "/api/export/" + noteId + "?protectedSessionId="
+ encodeURIComponent(protected_session.getProtectedSessionId());
download(url);
}