From c0e18f8807e7e0fc24fcb64d5c2a7d44c154b7fe Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 7 Jan 2015 09:51:51 +0400 Subject: [PATCH] Small fixes. --- chrome_point_plus/js/background.js | 2 +- chrome_point_plus/js/point-plus.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome_point_plus/js/background.js b/chrome_point_plus/js/background.js index d4fe28d..8beb756 100644 --- a/chrome_point_plus/js/background.js +++ b/chrome_point_plus/js/background.js @@ -13,7 +13,7 @@ chrome.storage.sync.get('options_version', function(data) { * Inject several JS files * @param {number} tabId Unique ID of tab which requested injection * @param {Object[]} files Array of objects of files to inject - * @callback onAllInjected Callback function running when injection ends + * @param {function} onAllInjected allback function running when injection ends */ function injectJS(tabId, files, onAllInjected) { var item = files.shift(); diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index a76262b..7b49e79 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -176,7 +176,7 @@ $(document).ready(function() { // If all JS are executed console.debug('Fancybox injection response: %O', response); if (response) { - console.log('Fancybox executed. Processing...') + console.log('Fancybox executed. Processing...'); if (options.is('option_fancybox_bind_images_to_one_flow')) { // Linking images in posts to the galleries @@ -396,7 +396,7 @@ $(document).ready(function() { try { // ping :) if (evt.data == 'ping') { - console.debug('ws-ping'); + console.info('ws-ping'); } else { var wsMessage = JSON.parse(evt.data); @@ -634,7 +634,7 @@ $(document).ready(function() { }); function getProtocol() { - return ((location.protocol == 'http:') ? 'http:' : 'https:') + return ((location.protocol == 'http:') ? 'http:' : 'https:'); } function escapeHtml(text) {