mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 18:56:04 +00:00
Options dependency fix.
This commit is contained in:
parent
13c6f9c614
commit
5afe90a990
|
@ -5,6 +5,7 @@ $(document).ready(function() {
|
||||||
// Loading options
|
// Loading options
|
||||||
chrome.storage.sync.get(ppOptions, function(options) {
|
chrome.storage.sync.get(ppOptions, function(options) {
|
||||||
// Fancybox
|
// Fancybox
|
||||||
|
if (options.option_fancybox == true) {
|
||||||
// Images
|
// Images
|
||||||
if (options.option_fancybox_images == true) {
|
if (options.option_fancybox_images == true) {
|
||||||
// Linking images in posts to the galleries
|
// Linking images in posts to the galleries
|
||||||
|
@ -34,6 +35,8 @@ $(document).ready(function() {
|
||||||
maxWidth: 780
|
maxWidth: 780
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Hotkeys
|
// Hotkeys
|
||||||
// Send by CTRL+Enter
|
// Send by CTRL+Enter
|
||||||
if (options.option_ctrl_enter == true) {
|
if (options.option_ctrl_enter == true) {
|
||||||
|
@ -104,6 +107,7 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// WebSocket
|
// WebSocket
|
||||||
|
if (options.option_ws == true) {
|
||||||
// Comments
|
// Comments
|
||||||
if (options.option_ws_comments == true) {
|
if (options.option_ws_comments == true) {
|
||||||
// If we are in the post page
|
// If we are in the post page
|
||||||
|
@ -207,6 +211,8 @@ $(document).ready(function() {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Showing page action
|
// Showing page action
|
||||||
|
|
Loading…
Reference in a new issue