Disabling visually cluttering messages on popup menu.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
parent
56eda4fe43
commit
6200f08174
2 changed files with 27 additions and 0 deletions
26
debian/patches/progress-linux/0003-disable-messages-on-popup.patch
vendored
Normal file
26
debian/patches/progress-linux/0003-disable-messages-on-popup.patch
vendored
Normal file
|
@ -0,0 +1,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);
|
||||
}
|
||||
}
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -1,2 +1,3 @@
|
|||
progress-linux/0001-disable-first-run-page.patch
|
||||
progress-linux/0002-pin-to-toolbar.patch
|
||||
progress-linux/0003-disable-messages-on-popup.patch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue