mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 18:56:04 +00:00
Small fixes.
This commit is contained in:
parent
8f9d880cb2
commit
c0e18f8807
|
@ -13,7 +13,7 @@ chrome.storage.sync.get('options_version', function(data) {
|
||||||
* Inject several JS files
|
* Inject several JS files
|
||||||
* @param {number} tabId Unique ID of tab which requested injection
|
* @param {number} tabId Unique ID of tab which requested injection
|
||||||
* @param {Object[]} files Array of objects of files to inject
|
* @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) {
|
function injectJS(tabId, files, onAllInjected) {
|
||||||
var item = files.shift();
|
var item = files.shift();
|
||||||
|
|
|
@ -176,7 +176,7 @@ $(document).ready(function() {
|
||||||
// If all JS are executed
|
// If all JS are executed
|
||||||
console.debug('Fancybox injection response: %O', response);
|
console.debug('Fancybox injection response: %O', response);
|
||||||
if (response) {
|
if (response) {
|
||||||
console.log('Fancybox executed. Processing...')
|
console.log('Fancybox executed. Processing...');
|
||||||
|
|
||||||
if (options.is('option_fancybox_bind_images_to_one_flow')) {
|
if (options.is('option_fancybox_bind_images_to_one_flow')) {
|
||||||
// Linking images in posts to the galleries
|
// Linking images in posts to the galleries
|
||||||
|
@ -396,7 +396,7 @@ $(document).ready(function() {
|
||||||
try {
|
try {
|
||||||
// ping :)
|
// ping :)
|
||||||
if (evt.data == 'ping') {
|
if (evt.data == 'ping') {
|
||||||
console.debug('ws-ping');
|
console.info('ws-ping');
|
||||||
} else {
|
} else {
|
||||||
var wsMessage = JSON.parse(evt.data);
|
var wsMessage = JSON.parse(evt.data);
|
||||||
|
|
||||||
|
@ -634,7 +634,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
function getProtocol() {
|
function getProtocol() {
|
||||||
return ((location.protocol == 'http:') ? 'http:' : 'https:')
|
return ((location.protocol == 'http:') ? 'http:' : 'https:');
|
||||||
}
|
}
|
||||||
|
|
||||||
function escapeHtml(text) {
|
function escapeHtml(text) {
|
||||||
|
|
Loading…
Reference in a new issue