Apply suggestions from code review
Co-authored-by: Ramires Viana <59319979+ramiresviana@users.noreply.github.com>
This commit is contained in:
parent
177bf18bfa
commit
3bb38c4dba
@ -320,12 +320,12 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
prefetchUrl: function(item, routePath) {
|
prefetchUrl: function(item) {
|
||||||
const key = Date.parse(item.modified);
|
const key = Date.parse(item.modified);
|
||||||
if (item.type === "image" && !this.fullSize) {
|
if (item.type === "image" && !this.fullSize) {
|
||||||
return `${baseURL}/api/preview/big${routePath.slice(6)}?k=${key}`;
|
return `${baseURL}/api/preview/big${item.path}?k=${key}&inline=true`;
|
||||||
} else if (item.type === "image"){
|
} else if (item.type === "image"){
|
||||||
return `${baseURL}/api/raw${routePath.slice(6)}?k=${key}`;
|
return `${baseURL}/api/raw${item.path}?k=${key}&inline=true`;
|
||||||
} else{
|
} else{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user