Make it so external images are handled correctly by the module
This commit is contained in:
parent
ef63860922
commit
bf7a89e4a7
3 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
import { filePath } from "../consts.mjs";
|
||||
|
||||
export function imagePath(image) {
|
||||
if (image.external) {
|
||||
return image.path;
|
||||
};
|
||||
return filePath(image.path);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue