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:
parent
0770e9892b
commit
e899377e16
@ -1,6 +1,7 @@
|
|||||||
.contents {
|
.contents {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 30%;
|
grid-template-columns: 1fr 30%;
|
||||||
|
margin-top: 46px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.metadata {
|
.metadata {
|
||||||
|
|||||||
@ -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();
|
fetchExtension();
|
||||||
|
fetchGithubDescription();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
if (!extension) {
|
if (!extension) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user