Skip to content

Commit

Permalink
Use comma between entries when copying the list of extensions (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
UtiluMark authored and whimboo committed Aug 23, 2016
1 parent a8995ad commit f7e9426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extension/chrome/content/nightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ getExtensionList: function(callback) {
+ (addon.userDisabled || addon.appDisabled ? " [DISABLED]" : "");
});
strings.sort(nightly.insensitiveSort);
callback(strings.join("\n"));
callback(strings);
});
} catch(e) {
// old extension manager API - take out after Firefox 3.6 support dropped
Expand Down Expand Up @@ -384,7 +384,7 @@ getExtensionList: function(callback) {
catch (e) { }
}
text.sort(nightly.insensitiveSort);
callback(text.join("\n"));
callback(text);
}
},

Expand All @@ -396,7 +396,7 @@ insertExtensions: function() {
nightly.getExtensionList(function(text) {
var newpos = element.selectionStart + text.length;
var value = element.value;
element.value = value.substring(0, element.selectionStart) + text +
element.value = value.substring(0, element.selectionStart) + text.join(", ") +
value.substring(element.selectionEnd);
element.selectionStart = newpos;
element.selectionEnd = newpos;
Expand All @@ -410,7 +410,7 @@ insertExtensions: function() {
copyExtensions: function() {
nightly.getExtensionList(function(text) {
if (text)
nightly.copyText(text);
nightly.copyText(text.join(", "));
});
},

Expand Down

0 comments on commit f7e9426

Please sign in to comment.