From 7faf5d22d8251a66e87d1f8702fe7c0e9c69a155 Mon Sep 17 00:00:00 2001 From: ColonelParrot <65585002+ColonelParrot@users.noreply.github.com> Date: Fri, 12 May 2023 09:16:20 -0400 Subject: [PATCH] Update extractPaper doc on website --- docs/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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!