diff --git a/.jshintignore b/.jshintignore index c2037807f..54d5ec4d7 100644 --- a/.jshintignore +++ b/.jshintignore @@ -1,14 +1,8 @@ node_modules/ www/bower_components/ -www/code/codemirror* -www/common/chainpad.js -storage/kad.js -www/common/otaml.js +www/common/pdfjs/ server.js -NetFluxWebsocketSrv.js -NetFluxWebsocketServer.js -WebRTCSrv.js www/common/media-tag.js www/scratch diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 36130464a..3d7edb585 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -24,7 +24,7 @@ define([ // Configure MediaTags to use our local viewer if (MediaTag && MediaTag.PdfPlugin) { - MediaTag.PdfPlugin.viewer = '/common/pdfjs/web/viewer.html' + MediaTag.PdfPlugin.viewer = '/common/pdfjs/web/viewer.html'; } /* This file exposes functionality which is specific to Cryptpad, but not to @@ -1295,7 +1295,7 @@ define([ if (img.width > img.height) { $image.css('max-height', '100%'); $container.css('flex-direction', 'column'); - if (cb) { cb($img); } + if (cb) { cb($image); } return; } $image.css('max-width', '100%'); diff --git a/www/profile/main.js b/www/profile/main.js index 7f4d13afe..40b513e1f 100644 --- a/www/profile/main.js +++ b/www/profile/main.js @@ -173,13 +173,13 @@ define([ console.log(name); console.log("Creating invite button"); - var $button = $("