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(); } }()); - -