You've already forked collage-maker
Fix url path
This commit is contained in:
@ -148,8 +148,12 @@ function snap() {
|
||||
const fsx = elem.offsetLeft - col
|
||||
const fsy = elem.offsetTop - cot
|
||||
const [sx, sy, ex, ey] = cpie.get().points;
|
||||
const imageFile = (() => {
|
||||
const u = new URL(elem.dataset.collageImageUrl)
|
||||
return u.pathname.slice("/photos/".length)
|
||||
})();
|
||||
const photo = {
|
||||
image: elem.dataset.collageImageUrl.slice("images/".length),
|
||||
image: imageFile,
|
||||
crop: {
|
||||
start: {
|
||||
x: parseInt(sx),
|
||||
|
Reference in New Issue
Block a user