diff --git a/core/browser.py b/core/browser.py index 8750e03c2..f885c19d8 100644 --- a/core/browser.py +++ b/core/browser.py @@ -171,12 +171,12 @@ def toggle_adblocker(self): ''' Change adblocker status.''' if self.buffer.emacs_var_dict["eaf-browser-enable-adblocker"] == "true": self.buffer.emacs_var_dict["eaf-browser-enable-adblocker"] = "false" - self.buffer.set_emacs_var.emit("eaf-browser-enable-adblocker", "false") + self.buffer.set_emacs_var.emit("eaf-browser-enable-adblocker", "false", "true") self.remove_css('adblocker',True) self.buffer.message_to_emacs.emit("Successfully disabled adblocker!") elif self.buffer.emacs_var_dict["eaf-browser-enable-adblocker"] == "false": self.buffer.emacs_var_dict["eaf-browser-enable-adblocker"] = "true" - self.buffer.set_emacs_var.emit("eaf-browser-enable-adblocker", "true") + self.buffer.set_emacs_var.emit("eaf-browser-enable-adblocker", "true", "true") self.load_adblocker() self.buffer.message_to_emacs.emit("Successfully enabled adblocker!")