瀏覽代碼

Fix typo in js-xss data

updates #2006
JC Brand 5 年之前
父節點
當前提交
db69d724bb
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      src/templates/chatroom_details_modal.js
  2. 3 3
      src/templates/emoji_picker.js

+ 1 - 1
src/templates/chatroom_details_modal.js

@@ -40,7 +40,7 @@ const i18n_topic_author = __('Topic author');
 
 
 const subject = (o) => html`
-    <p class="room-info"><strong>${i18n_topic}</strong>: ${unsafeHTML(xss.filterXSS(o.subject.text, {'whitelist': {}}))}</p>
+    <p class="room-info"><strong>${i18n_topic}</strong>: ${unsafeHTML(xss.filterXSS(o.subject.text, {'whiteList': {}}))}</p>
         <p class="room-info"><strong>${i18n_topic_author}</strong>: ${o.subject && o.subject.author}</p>
 `;
 

+ 3 - 3
src/templates/emoji_picker.js

@@ -10,7 +10,7 @@ const skintones = ['tone1', 'tone2', 'tone3', 'tone4', 'tone5'];
 
 
 const emoji_category = (o) => {
-    const category_emoji = unsafeHTML(xss.filterXSS(o.transformCategory(o.emoji_categories[o.category]), {'whitelist': {'img': []}}));
+    const category_emoji = unsafeHTML(xss.filterXSS(o.transformCategory(o.emoji_categories[o.category]), {'whiteList': {'img': []}}));
     return html`
         <li data-category="${o.category}"
             class="emoji-category ${o.category} ${(o.current_category === o.category) ? 'picked' : ''}"
@@ -34,7 +34,7 @@ const emoji_picker_header = (o) => html`
 const emoji_item = (o) => {
     let emoji;
     if (o._converse.api.settings.get('use_system_emojis')) {
-        emoji = unsafeHTML(xss.filterXSS(o.transform(o.emoji.sn), {'whitelist': {'img': []}}));
+        emoji = unsafeHTML(xss.filterXSS(o.transform(o.emoji.sn), {'whiteList': {'img': []}}));
     }
     return html`
         <li class="emoji insert-emoji ${o.shouldBeHidden(o.emoji.sn) ? 'hidden' : ''}" data-emoji="${o.emoji.sn}" title="${o.emoji.sn}">
@@ -64,7 +64,7 @@ const skintone_emoji = (o) => {
     const shortname = ':'+o.skintone+':';
     let emoji;
     if (o._converse.api.settings.get('use_system_emojis')) {
-        emoji = unsafeHTML(xss.filterXSS(o.transform(shortname), {'whitelist': {'img': []}}));
+        emoji = unsafeHTML(xss.filterXSS(o.transform(shortname), {'whiteList': {'img': []}}));
     }
     return html`
         <li data-skintone="${o.skintone}" class="emoji-skintone ${(o.current_skintone === o.skintone) ? 'picked' : ''}">