[epiphany/gnome-3-36] Revert "Disable reader mode"



commit 7acfb948f53195cf0219bd59884d150988c843a4
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Thu Dec 16 12:47:36 2021 -0600

    Revert "Disable reader mode"
    
    This reverts commit ed62a829e8bfc285f4855fd854883bece3e940c4.

 embed/ephy-web-view.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 026ad4ca3..f31f5fdf7 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -670,7 +670,6 @@ _ephy_web_view_set_is_blank (EphyWebView *view,
   }
 }
 
-#if 0
 static
 char *readability_get_property_string (WebKitJavascriptResult *js_result,
                                        char                   *property)
@@ -741,7 +740,6 @@ run_readability_js_if_needed (gpointer data)
   web_view->reader_js_timeout = 0;
   return G_SOURCE_REMOVE;
 }
-#endif
 
 static void
 title_changed_cb (WebKitWebView *web_view,
@@ -1495,11 +1493,8 @@ load_changed_cb (WebKitWebView   *web_view,
       g_clear_handle_id (&view->reader_js_timeout, g_source_remove);
 
       view->reader_loading = FALSE;
-
-#if 0
       if (!view->reader_active)
         view->reader_js_timeout = g_idle_add (run_readability_js_if_needed, web_view);
-#endif
 
       break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]