Skip to content

Commit

Permalink
Removed findShareUrl function
Browse files Browse the repository at this point in the history
  • Loading branch information
zuzanna-maria committed Oct 18, 2024
1 parent 7471916 commit 30a0864
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
['name' => 'settings#getCryptPadUrl', 'url' => '/settings/cryptPadUrl/{app}', 'verb' => 'GET'],
['name' => 'settings#setCryptPadUrl', 'url' => '/settings/cryptPadUrl/{app}', 'verb' => 'PUT'],
['name' => 'editor#page', 'url' => '/editor', 'verb' => 'GET'],
['name' => 'share#image', 'url' => '/share/{token}', 'verb' => 'GET'],
]
];
13 changes: 0 additions & 13 deletions src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,6 @@ async function onInsertImage(data, callback) {
callback({ blob }) // eslint-disable-line n/no-callback-literal
}

/**
*
* @param {(object)} shares all existing share for this file
*/
function findShareUrl(shares) {
const share = shares.find((share) => share.share_type === OC.Share.SHARE_TYPE_LINK)
if (!share) {
return
}

const url = window.location.protocol + '//' + window.location.host + generateUrl(`/apps/openincryptpad/share/${share.token}`)
return url
}

Check failure on line 102 in src/editor.js

View workflow job for this annotation

GitHub Actions / eslint

More than 1 blank line not allowed
/**
*
Expand Down

0 comments on commit 30a0864

Please sign in to comment.