forked from MapComplete/MapComplete
Remove a few empty spaces and line breaks
Most it is done by my editor automatically.
This commit is contained in:
parent
4aebf05918
commit
c2ee058682
8 changed files with 19 additions and 24 deletions
|
@ -150,16 +150,14 @@ function createManifest(layout: LayoutConfig, relativePath: string) {
|
|||
let icon = layout.icon;
|
||||
if (icon.endsWith(".svg") || icon.startsWith("<svg") || icon.startsWith("<?xml")) {
|
||||
// This is an svg. Lets create the needed pngs!
|
||||
|
||||
|
||||
let path = layout.icon;
|
||||
if (layout.icon.startsWith("<")) {
|
||||
// THis is already the svg
|
||||
path = "./assets/generated/" + layout.id + "_logo.svg"
|
||||
writeFileSync(path, layout.icon)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const sizes = [72, 96, 120, 128, 144, 152, 180, 192, 384, 512];
|
||||
for (const size of sizes) {
|
||||
const name = createIcon(path, size, layout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue