clear cache while initializing webview to aleviate issues caused by signal changing their page

This commit is contained in:
finn 2022-04-05 14:38:53 -07:00
parent 19347afd0e
commit ee121709ac

View file

@ -14,6 +14,7 @@ public class ValaBrowser : Window {
this.web_view = new WebView (); this.web_view = new WebView ();
this.web_view.web_context.register_uri_scheme("signalcaptcha", token_issued); 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); var scrolled_window = new ScrolledWindow (null, null);
scrolled_window.set_policy (PolicyType.AUTOMATIC, PolicyType.AUTOMATIC); scrolled_window.set_policy (PolicyType.AUTOMATIC, PolicyType.AUTOMATIC);
scrolled_window.add (this.web_view); scrolled_window.add (this.web_view);