You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/mozilla/add-ons/webextensions/your_second_webextension/index.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,8 +171,7 @@ Note that we include the CSS and JS files from this file, just like a web page.
171
171
The CSS fixes the size of the popup, ensures that the three choices fill the space, and gives them some basic styling. It also hides elements with `class="hidden"`: this means that our `<div id="error-content"...` element will be hidden by default.
172
172
173
173
```css
174
-
html,
175
-
body {
174
+
html, body {
176
175
width: 100px;
177
176
}
178
177
@@ -275,14 +274,16 @@ function listenForClicks() {
275
274
* Get the active tab,
276
275
* then call "beastify()" or "reset()" as appropriate.
277
276
*/
277
+
if (e.target.tagName!=="BUTTON"||!e.target.closest("#popup-content")) {
278
+
// Ignore when click is not on a button within <div id="popup-content">.
0 commit comments