User:Bosco/MediaWiki:Gadget-MarkRights.js: Difference between revisions
From Test Wiki
Content deleted Content added
+extendedconfirmed |
TypeError: groups[group].list.includes is not a function, the `includes` function cannot be used safely unless feature detection is used first given we support older browsers that are running older versions of JavaScript. |
||
| Line 80: | Line 80: | ||
for (group in groups) { |
for (group in groups) { |
||
if (groups.hasOwnProperty(group)) { |
if (groups.hasOwnProperty(group)) { |
||
if (groups[group].list. |
if (groups[group].list.indexOf(username) > -1) { |
||
$(el).append('<sup class="' + groups[group].class + '"></sup>'); |
$(el).append('<sup class="' + groups[group].class + '"></sup>'); |
||
} |
} |
||