Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions public/components/package/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import * as utils from "../../../common/utils.js";

export class PackageHeader {
static ExternalLinks = {
socket: "https://socket.dev/npm/package/",
snykAdvisor: "https://snyk.io/advisor/npm-package/"
socket: "https://socket.dev/npm/package/"
};

constructor(pkg) {
Expand Down Expand Up @@ -173,7 +172,7 @@ export class PackageHeader {
* @returns {HTMLElement[]}
*/
renderMenu(packageName) {
const { snykAdvisor, socket } = PackageHeader.ExternalLinks;
const { socket } = PackageHeader.ExternalLinks;
const i18n = window.i18n[utils.currentLang()];

return utils.createDOMElement("div", {
Expand All @@ -183,13 +182,6 @@ export class PackageHeader {
text: i18n.package_info.helpers.thirdPartyTools,
classList: ["info-menu-title"]
}),
utils.createDOMElement("a", {
text: "Snyk",
attributes: {
href: snykAdvisor + packageName,
target: "_blank"
}
}),
utils.createDOMElement("a", {
text: "Socket.dev",
attributes: {
Expand Down
Loading