summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2020-06-11 07:06:49 +0200
committerJan-Michael Brummer <jan.brummer@tabos.org>2020-06-14 16:15:46 +0200
commitcbf9765da58dd13b6ef219fcbcb7f02265c81572 (patch)
treea0c753905c26989a13648f28bb8dd95814f0e58b /src
parent3865933c86d9759581dabeb8e7bedd537c55226b (diff)
downloadepiphany-cbf9765da58dd13b6ef219fcbcb7f02265c81572.tar.gz
Add reader mode handler
Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/50
Diffstat (limited to 'src')
-rw-r--r--src/ephy-session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 988294ec2..337d0740e 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -875,7 +875,8 @@ session_seems_sane (GList *windows)
if (uri) {
if (uri->host != NULL ||
uri->scheme == SOUP_URI_SCHEME_DATA ||
- uri->scheme == SOUP_URI_SCHEME_FILE)
+ uri->scheme == SOUP_URI_SCHEME_FILE ||
+ strcmp (uri->scheme, "ephy-reader") == 0)
sane = TRUE;
soup_uri_free (uri);
}