mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(view) viewImage: href, prefixURL -> prefixURL
This commit is contained in:
parent
d92f5f6cf6
commit
455f4e77e0
1 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ function show(data, options) {
|
|||
return viewFile();
|
||||
|
||||
case 'image':
|
||||
return viewImage(path, prefixURL);
|
||||
return viewImage(prefixURL);
|
||||
|
||||
case 'media':
|
||||
return viewMedia(path);
|
||||
|
|
@ -185,7 +185,7 @@ function hide() {
|
|||
modal.close();
|
||||
}
|
||||
|
||||
function viewImage(href, prefixURL) {
|
||||
function viewImage(prefixURL) {
|
||||
const makeTitle = (path) => {
|
||||
return {
|
||||
href: prefixURL + path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue