Posts notification option check fix.

This commit is contained in:
Alexey Skobkin 2015-01-16 15:48:57 +04:00
parent 4203ba62ed
commit 612052e5ca

View file

@ -486,7 +486,7 @@ $(document).ready(function() {
console.groupCollapsed('ws-post #%s', wsMessage.post_id); console.groupCollapsed('ws-post #%s', wsMessage.post_id);
console.debug(wsMessage); console.debug(wsMessage);
if (options.is('option_ws_posts')) {
if (options.is('option_ws_posts_notifications')) { if (options.is('option_ws_posts_notifications')) {
console.log('Showing desktop notification'); console.log('Showing desktop notification');
chrome.runtime.sendMessage({ chrome.runtime.sendMessage({
@ -497,6 +497,7 @@ $(document).ready(function() {
text: wsMessage.text text: wsMessage.text
}, function(response) {}); }, function(response) {});
} }
}
console.groupEnd(); console.groupEnd();
break; break;