Merge pull request #3 from lordzouga/main
update download button position and cell count
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
for (let i = 0; i < metadataRows.length; i++) {
|
for (let i = 0; i < metadataRows.length; i++) {
|
||||||
const row = metadataRows[i];
|
const row = metadataRows[i];
|
||||||
const cells = row.querySelectorAll("td");
|
const cells = row.querySelectorAll("td");
|
||||||
if (cells.length === 2) {
|
if (cells.length > 1) {
|
||||||
const key = cells[0].innerText.trim();
|
const key = cells[0].innerText.trim();
|
||||||
const value = cells[1].innerText.trim();
|
const value = cells[1].innerText.trim();
|
||||||
if (metadataMap.hasOwnProperty(key)) {
|
if (metadataMap.hasOwnProperty(key)) {
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find the element with the class "vscode-moreinformation"
|
// Find the element with the class "vscode-moreinformation"
|
||||||
const moreInfoElement = document.querySelector(".vscode-moreinformation");
|
const moreInfoElement = document.querySelector(".ms-Fabric.root-38");
|
||||||
if (moreInfoElement) {
|
if (moreInfoElement) {
|
||||||
// Append the download button to the parent element
|
// Append the download button to the parent element
|
||||||
moreInfoElement.parentElement.appendChild(extensionData.getDownloadButton());
|
moreInfoElement.parentElement.appendChild(extensionData.getDownloadButton());
|
||||||
@@ -94,7 +94,6 @@
|
|||||||
)()
|
)()
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
// Second Script: Opens the VSIX file in a new tab
|
// Second Script: Opens the VSIX file in a new tab
|
||||||
***/
|
***/
|
||||||
|
|||||||
Reference in New Issue
Block a user