feat: added data-cm-link attribute to set a link specific for the context menu; refactor: removed pointless chageTab function in Artist page

This commit is contained in:
Roberto Tonino
2020-11-19 19:11:23 +01:00
parent 5c1e5204b2
commit 15397670e5
3 changed files with 30 additions and 27 deletions

View File

@@ -136,6 +136,11 @@ export default {
deezerLink = path[i].dataset.link
break
}
if (path[i].matches('[data-cm-link]')) {
deezerLink = path[i].dataset.cmLink
break
}
}
const isLink = elementClicked.matches('a')