mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-01-05 22:18:42 +00:00
Merge pull request #225 from reosarevok/patch-2
Update childNode after React conversion
This commit is contained in:
commit
5c3dd47709
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ header.appendChild(headerColumn);
|
||||||
// We add the links to the recordings
|
// We add the links to the recordings
|
||||||
for (let i = 0; i < recordings.length; i++) {
|
for (let i = 0; i < recordings.length; i++) {
|
||||||
const recordingRow = recordings[i];
|
const recordingRow = recordings[i];
|
||||||
const recordingUrl = recordingRow.childNodes[3].childNodes[0].getAttribute('href');
|
const recordingUrl = recordingRow.childNodes[1].childNodes[0].getAttribute('href');
|
||||||
const extraCell = document.createElement('td');
|
const extraCell = document.createElement('td');
|
||||||
extraCell.innerHTML = `<a href="${recordingUrl}/edit">edit</a>`;
|
extraCell.innerHTML = `<a href="${recordingUrl}/edit">edit</a>`;
|
||||||
recordingRow.appendChild(extraCell);
|
recordingRow.appendChild(extraCell);
|
||||||
|
|
Loading…
Reference in a new issue