Skip to content

Commit

Permalink
Upgrade to eleventy 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarsceau committed Nov 17, 2024
1 parent 232ca5a commit 46e6e1a
Show file tree
Hide file tree
Showing 4 changed files with 1,051 additions and 872 deletions.
4 changes: 2 additions & 2 deletions _site/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class App {
if (file.type.startsWith("image/")) {
const reader = new FileReader()
reader.readAsDataURL(file)
reader.onload = () => {this.img.src = reader.result}
reader.onload = () => { this.img.src = reader.result }
} else {
this.setDefaultImage()
}
Expand Down Expand Up @@ -127,7 +127,7 @@ export class App {

download() {
const link = this.dom.createElement('a')
link.download = 'image.png'
link.download = 'image-with-border.png'
link.href = this.canvas.toDataURL()
link.click()
}
Expand Down
Loading

0 comments on commit 46e6e1a

Please sign in to comment.