json and markdown are editable by default

This commit is contained in:
Milos Stojanovic
2020-07-18 12:57:51 +02:00
parent 613aeda8be
commit 4f6b55675f
5 changed files with 9 additions and 4 deletions

View File

@@ -194,7 +194,9 @@ const api = {
downloadItem (params) {
return new Promise((resolve, reject) => {
axios.get('download&path='+encodeURIComponent(Base64.encode(params.path)),
{transformResponse : undefined})
{
transformResponse: undefined,
})
.then(res => resolve(res.data))
.catch(error => reject(error))
})