Showing icon as soon as possible.

This commit is contained in:
Alexey Skobkin 2014-11-26 23:00:32 +04:00
parent 5293443c86
commit 699fd726c4

View file

@ -1,3 +1,8 @@
// Showing page action
chrome.extension.sendMessage({
type: 'showPageAction'
});
$(document).ready(function() {
// Grouping console log
console.group('point-plus');
@ -27,8 +32,8 @@ $(document).ready(function() {
draft_restore();
// Loading options
chrome.storage.sync.get('options', function(options_data) {
var options = options_data.options;
chrome.storage.sync.get('options', function(sync_data) {
var options = sync_data.options;
// Options debug
console.debug('Options loaded: %O', options);
@ -526,11 +531,6 @@ $(document).ready(function() {
$('.point-plus-debug').fadeOut(500);
});
// Showing page action
chrome.extension.sendMessage({
type: 'showPageAction'
});
});
function getProtocol() {