From da79a22295270fedd446ab2128932d6eefe08c58 Mon Sep 17 00:00:00 2001 From: Cassidy James Blaede Date: Mon, 22 Apr 2024 17:02:31 -0600 Subject: [PATCH] WebView: Fix cookies, fix add-site page --- src/Widgets/WebView.vala | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Widgets/WebView.vala b/src/Widgets/WebView.vala index bd65ef7..179b063 100644 --- a/src/Widgets/WebView.vala +++ b/src/Widgets/WebView.vala @@ -10,6 +10,7 @@ public class Plausible.WebView : WebKit.WebView { Object ( hexpand: true, vexpand: true, + network_session: new WebKit.NetworkSession (null, null), user_content_manager: new WebKit.UserContentManager () ); } @@ -38,18 +39,19 @@ public class Plausible.WebView : WebKit.WebView { cursor: default; } - body > div:not(:first-child) { - display: none; - } - body > nav { display: none; } - main { + body > main { margin-top: -1.5em; } + /* Footer */ + body > main + div { + display: none; + } + button, [role=button], .button,