Browse Source

Follow-up to rev. 1736da534511: Fix linting.

1.1.101
Jorg Knobloch 1 year ago
parent
commit
9c7e3d3792
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      addon/content/pepmsghdrview.js

+ 2
- 1
addon/content/pepmsghdrview.js View File

@ -466,12 +466,13 @@ var pEpHdrView = {
let privacyLabel = this.getLocaleMessage(pEpController.textFromRating(rating));
if (keyList && Services.prefs.getBoolPref("extensions.pEp.showFPR", false)) {
// eslint-disable-next-line prefer-template
let keys = keyList.split(",");
if (keys.length > 9) {
keys = keys.splice(0, 9);
// eslint-disable-next-line prefer-template
keyList = keys.join(",") + " ... ";
}
// eslint-disable-next-line prefer-template
privacyLabel += " (" + keyList.replace(/([0-9A-Z]*,[0-9A-Z]*,[0-9A-Z]*,)/g, "$1\n") + ")";
}
const privacyTextNode = win.document.createTextNode(privacyLabel);


Loading…
Cancel
Save