diff --git a/docs/index.html b/docs/index.html
index 7aef65e..8df9dfe 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -96,9 +96,8 @@ import jscanify from 'jscanify'
const paperWidth = 500;
const paperHeight = 1000;
image.onload = function () {
- scanner.extractPaper(image, paperWidth, paperHeight, (resultCanvas) => {
- document.body.appendChild(resultCanvas);
- });
+ const resultCanvas = scanner.extractPaper(image, paperWidth, paperHeight);
+ document.body.appendChild(resultCanvas);
};
It's that easy! Come check out the documentation!