Add overboard support to image-hover functionality.

This commit is contained in:
Benjamin Southall 2017-03-03 15:04:23 +09:00 committed by -
parent f4cb143945
commit cdde6f24b6

View File

@ -5,7 +5,7 @@
* Thanks Pashe for using WTFPL. * Thanks Pashe for using WTFPL.
*/ */
if (active_page === "catalog" || active_page === "thread" || active_page === "index") { if (active_page === "catalog" || active_page === "thread" || active_page === "index" || active_page === "ukko") {
$(document).on('ready', function(){ $(document).on('ready', function(){
if (window.Options && Options.get_tab('general')) { if (window.Options && Options.get_tab('general')) {
@ -59,6 +59,10 @@ function isOnThread() {
return window.active_page === "thread"; return window.active_page === "thread";
} }
function isOnUkko() {
return window.active_page === "ukko";
}
function getSetting(key) { function getSetting(key) {
return (localStorage[key] == 'true'); return (localStorage[key] == 'true');
} }