Fix hearts
[wolnelektury.git] / src / wolnelektury / static / js / book_text / progress.js
index ae5b14a..723e03e 100644 (file)
@@ -4,6 +4,8 @@
 
     function upd_t() {
         $text = $('#main-text #book-text');
 
     function upd_t() {
         $text = $('#main-text #book-text');
+        if (!$text.length) return;
+
         texttop = $text.offset().top;
 
         $footnotes = $('#footnotes', $text);
         texttop = $text.offset().top;
 
         $footnotes = $('#footnotes', $text);