summaryrefslogtreecommitdiffstats
path: root/client/components/main/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/main/editor.js')
-rwxr-xr-xclient/components/main/editor.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js
index 39c03aa9..bd110868 100755
--- a/client/components/main/editor.js
+++ b/client/components/main/editor.js
@@ -229,18 +229,14 @@ Template.editor.onRendered(() => {
currentCard,
fileObj,
attachment => {
- if (
- attachment &&
- attachment._id &&
- attachment.isImage()
- ) {
+ if (attachment && attachment._id && attachment.isImage) {
attachment.one('uploaded', function() {
const maxTry = 3;
const checkItvl = 500;
let retry = 0;
const checkUrl = function() {
// even though uploaded event fired, attachment.url() is still null somehow //TODO
- const url = attachment.url();
+ const url = attachment.link();
if (url) {
insertImage(
`${location.protocol}//${location.host}${url}`,