From 0483d15b8f7b90c2417e5a4cac16d0dc4ecddddd Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 12 Jul 2017 10:54:24 +0200 Subject: [PATCH] lint compliance --- .jshintignore | 8 +------- www/common/cryptpad-common.js | 4 ++-- www/profile/main.js | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) 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 = $("