Options dependency fix.

This commit is contained in:
Alexey Skobkin 2014-04-04 01:48:37 +04:00
parent 13c6f9c614
commit 5afe90a990

View file

@ -5,6 +5,7 @@ $(document).ready(function() {
// Loading options
chrome.storage.sync.get(ppOptions, function(options) {
// Fancybox
if (options.option_fancybox == true) {
// Images
if (options.option_fancybox_images == true) {
// Linking images in posts to the galleries
@ -34,6 +35,8 @@ $(document).ready(function() {
maxWidth: 780
});
}
}
// Hotkeys
// Send by CTRL+Enter
if (options.option_ctrl_enter == true) {
@ -104,6 +107,7 @@ $(document).ready(function() {
});
}
// WebSocket
if (options.option_ws == true) {
// Comments
if (options.option_ws_comments == true) {
// If we are in the post page
@ -207,6 +211,8 @@ $(document).ready(function() {
}
}
}
});
// Showing page action