From 8f2217c2cbb709b30cfbb1b4e4c917b3116dbe99 Mon Sep 17 00:00:00 2001 From: Wolfgang Ginolas Date: Wed, 2 Oct 2024 09:41:03 +0200 Subject: [PATCH] Fix image import from Nextcloud --- www/cryptpad-api.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/www/cryptpad-api.js b/www/cryptpad-api.js index e73ef40bd..01f9f6946 100644 --- a/www/cryptpad-api.js +++ b/www/cryptpad-api.js @@ -214,7 +214,7 @@ cb(); }); chan.on('ON_INSERT_IMAGE', function(data, cb) { - if (config.events.onIntertImage) { + if (config.events.onInsertImage) { config.events.onInsertImage(data, cb); } else { cb(); } }); @@ -362,5 +362,3 @@ window.CryptPadAPI = factory(); } }()); - -