Kouhei Sutou
null+****@clear*****
Mon Jul 10 10:41:12 JST 2017
Kouhei Sutou 2017-07-10 10:41:12 +0900 (Mon, 10 Jul 2017) New Revision: 98cc0fd2bf48e319225075431aa0d05c6a598696 https://github.com/ranguba/chupa-text-decomposer-webkit/commit/98cc0fd2bf48e319225075431aa0d05c6a598696 Message: Always use downloaded data Modified files: lib/chupa-text/decomposers/webkit.rb Modified: lib/chupa-text/decomposers/webkit.rb (+3 -10) =================================================================== --- lib/chupa-text/decomposers/webkit.rb 2017-07-10 10:17:49 +0900 (5f52d4d) +++ lib/chupa-text/decomposers/webkit.rb 2017-07-10 10:41:12 +0900 (879f717) @@ -94,17 +94,10 @@ module ChupaText end true end - if data.uri.class == URI::Generic - debug do - "#{log_tag}[load][html] #{data.uri}" - end - view.load_html(data.body, data.uri.to_s) - else - debug do - "#{log_tag}[load][uri] #{data.uri}" - end - view.load_uri(data.uri.to_s) + debug do + "#{log_tag}[load][html] #{data.uri}" end + view.load_html(data.body, data.uri.to_s) main_context = GLib::MainContext.default until finished -------------- next part -------------- HTML����������������������������... Télécharger