Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Nüsse <felix.nuesse@t-online.de>2021-12-18 17:01:20 +0300
committerFelix Nüsse <felix.nuesse@t-online.de>2022-01-14 19:09:09 +0300
commit4b9ac803a3fadf475609b5f1a71e1042b4372980 (patch)
tree1d95c8dadda73681fc9bb1302fe91f9495c78864
parentc8853e67e7e0dc0eb9c234b335b622fa2e4ddcfe (diff)
fix js lint issuesFeature/noid/images_save
-rw-r--r--src/components/EditorMarkdownIt.vue18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/components/EditorMarkdownIt.vue b/src/components/EditorMarkdownIt.vue
index 6685a330..9131d063 100644
--- a/src/components/EditorMarkdownIt.vue
+++ b/src/components/EditorMarkdownIt.vue
@@ -63,16 +63,16 @@ export default {
token.attrs[aIndex][1] = path
const lowecasePath = path.toLowerCase()
// pass token to default renderer.
- if (lowecasePath.endsWith("jpg") ||
- lowecasePath.endsWith("jpeg") ||
- lowecasePath.endsWith("bmp") ||
- lowecasePath.endsWith("webp") ||
- lowecasePath.endsWith("gif") ||
- lowecasePath.endsWith("png")) {
+ if (lowecasePath.endsWith('jpg')
+ || lowecasePath.endsWith('jpeg')
+ || lowecasePath.endsWith('bmp')
+ || lowecasePath.endsWith('webp')
+ || lowecasePath.endsWith('gif')
+ || lowecasePath.endsWith('png')) {
return defaultRender(tokens, idx, options, env, self)
- }else{
- let dlimgpath = generateUrl('svg/core/actions/download?color=ffffff');
- return "<div class='download-file'><a href='"+path+"'><div class='download-icon'><img class='download-icon-inner' src='"+dlimgpath+"'>"+token.content+"</div></a></div>"
+ } else {
+ const dlimgpath = generateUrl('svg/core/actions/download?color=ffffff')
+ return '<div class=\'download-file\'><a href=\'' + path + '\'><div class=\'download-icon\'><img class=\'download-icon-inner\' src=\'' + dlimgpath + '\'>' + token.content + '</div></a></div>'
}
};