~midori/midori/clippyEditor

« back to all changes in this revision

Viewing changes to katze/midori-uri.vala

  • Committer: Christian Dywan
  • Date: 2017-11-06 22:50:22 UTC
  • Revision ID: christian@twotoasts.de-20171106225022-gjvmy6gcyhy93s63
Drop non-WebKit2/ non-libnotify code paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
            return uri;
52
52
        }
53
53
        public static string get_base_domain (string uri) {
54
 
#if HAVE_LIBSOUP_2_40_0
55
54
            try {
56
55
                string ascii = to_ascii (uri);
57
56
                return Soup.tld_get_base_domain (ascii);
58
57
            } catch (Error error) {
59
58
                /* This is fine, we fallback to hostname */
60
59
            }
61
 
#endif
62
60
            return parse_hostname (uri, null);
63
61
        }
64
62