[Pkg-mozext-commits] [perspectives-extension] 16/44: Pers_add_toolbar_button - fix === usage
David Prévot
taffit at moszumanska.debian.org
Sun Jun 26 04:59:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository perspectives-extension.
commit 40096f0b87661f2f0a8ea403aae7852e0f538eac
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date: Sun Jun 12 21:31:58 2016 -0700
Pers_add_toolbar_button - fix === usage
---
plugin/chrome/content/addtoolbarbutton.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugin/chrome/content/addtoolbarbutton.js b/plugin/chrome/content/addtoolbarbutton.js
index 4e631cf..db2f992 100644
--- a/plugin/chrome/content/addtoolbarbutton.js
+++ b/plugin/chrome/content/addtoolbarbutton.js
@@ -38,10 +38,10 @@ var Pers_add_toolbar_button = {
var firefoxnav = document.getElementById(toolbarId);
var curSet = firefoxnav.currentSet;
var re = new RegExp(beforeId);
- if (curSet.indexOf(buttonId) == -1) {
+ if (curSet.indexOf(buttonId) === -1) {
var set;
// Place the button before the element
- if (curSet.indexOf(beforeId) != -1) {
+ if (curSet.indexOf(beforeId) !== -1) {
set = curSet.replace(re, buttonId + "," + beforeId);
} else { // at the end
set = curSet + "," + buttonId;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git
More information about the Pkg-mozext-commits
mailing list