1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fetch github README

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-02-08 15:19:49 +03:00
parent 0770e9892b
commit e899377e16
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
.contents {
display: grid;
grid-template-columns: 1fr 30%;
margin-top: 46px;
}
.metadata {

View File

@ -26,7 +26,14 @@ export function ExtensionPage() {
}
}
async function fetchGithubDescription() {
const description = await fetch("https://raw.githubusercontent.com/{owner}/{repo}/{branch}/README.md");
console.log(await description.text());
}
fetchExtension();
fetchGithubDescription();
}, []);
if (!extension) {