Small fixes.

This commit is contained in:
Alexey Skobkin 2015-01-07 09:51:51 +04:00
parent 8f9d880cb2
commit c0e18f8807
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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) {