Webview: bootstrap layout

This commit is contained in:
Johannes Kirschbauer
2024-05-29 16:40:20 +02:00
parent d0d973b797
commit 9bf76037aa
17 changed files with 407 additions and 96 deletions

View File

@@ -25,9 +25,12 @@ fs.readFile(manifestPath, { encoding: "utf8" }, (err, data) => {
// Add linked stylesheets
assets.forEach((asset) => {
asset.css.forEach((cssEntry) => {
htmlContent += `\n <link rel="stylesheet" href="${cssEntry}">`;
});
console.log(asset);
if (asset.src === "index.html") {
asset.css.forEach((cssEntry) => {
htmlContent += `\n <link rel="stylesheet" href="${cssEntry}">`;
});
}
});
htmlContent += `