summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0003-disable-messages-on-popup.patch
blob: 5f17acef03fd672d6c51b27b1dde79d11280380b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Disabling visually cluttering messages on popup menu.

diff -Naurp privacybadger.orig/src/js/popup.js privacybadger/src/js/popup.js
--- privacybadger.orig/src/js/popup.js
+++ privacybadger/src/js/popup.js
@@ -123,18 +123,7 @@ function showNagMaybe() {
     $outer.show();
   }
 
-  if (POPUP_DATA.showLearningPrompt) {
-    _showLearningPrompt();
-
-  } else if (!POPUP_DATA.seenComic) {
-    chrome.tabs.query({active: true, currentWindow: true}, function (focusedTab) {
-      // Show the popup instruction if the active tab is not firstRun.html page
-      if (!focusedTab[0].url.startsWith(intro_page_url)) {
-        _showNag();
-      }
-    });
-
-  } else if (POPUP_DATA.criticalError) {
+  if (POPUP_DATA.criticalError) {
     _showError(POPUP_DATA.criticalError);
   }
 }