Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Jun 19, 2024
1 parent 36c7118 commit d55af4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions static/xref/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ function renderResults(entries, query) {
function howToCiteIDL(term, entry) {
const { type, for: forList } = entry;
if (forList) {
return forList.map(f => type === 'enum-value'
? `{{${f}/${term ? '"' + term + '"' : '""'}}}`
: `{{${f}/${term ? term : '""'}}}`).join('<br>');
return forList.map(f => `{{${f}/${term ? type === "enum-value" ? `"${term}"` : term : '""'}}}`).join('<br>');
}
switch (type) {
case 'exception':
Expand Down

0 comments on commit d55af4b

Please sign in to comment.