From ee121709acc40874c913455427d3bac2c5d8df21 Mon Sep 17 00:00:00 2001 From: finn Date: Tue, 5 Apr 2022 14:38:53 -0700 Subject: [PATCH] clear cache while initializing webview to aleviate issues caused by signal changing their page --- signal-captcha-helper.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/signal-captcha-helper.vala b/signal-captcha-helper.vala index 524c42a..cdcdbe3 100644 --- a/signal-captcha-helper.vala +++ b/signal-captcha-helper.vala @@ -14,6 +14,7 @@ public class ValaBrowser : Window { this.web_view = new WebView (); this.web_view.web_context.register_uri_scheme("signalcaptcha", token_issued); + this.web_view.web_context.clear_cache(); var scrolled_window = new ScrolledWindow (null, null); scrolled_window.set_policy (PolicyType.AUTOMATIC, PolicyType.AUTOMATIC); scrolled_window.add (this.web_view);