Skip to content

Commit

Permalink
Update build-apidoc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 26, 2023
1 parent e93d053 commit fcbafdd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api-generator/build-apidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,6 @@ if (project) {
.map((s) => {
if (s.text.indexOf('[here]') > -1) {
return `${s.text.slice(0, s.text.indexOf('[here]'))} <a target="_blank" href="${s.text.slice(s.text.indexOf('(') + 1, s.text.indexOf(')'))}">here</a> ${s.text.slice(s.text.indexOf(')') + 1)}`;
} else if (s.text.indexOf('[MDN Reference]') > -1) {
return `${s.text.slice(0, s.text.indexOf('[MDN Reference]'))} <a target="_blank" href="${s.text.slice(s.text.indexOf('(') + 1, s.text.indexOf(')'))}">MDN Reference</a> ${s.text.slice(
s.text.indexOf(')') + 1
)}`;
}

return s.text || '';
Expand Down

0 comments on commit fcbafdd

Please sign in to comment.