set mime type and correct line returns

This commit is contained in:
Fabrice LAMANT
2026-02-08 11:14:11 +01:00
parent 23844d5417
commit 278383e4d0

View File

@ -27,7 +27,7 @@ export class ICSGenerator {
chunks.push(chunk);
index += 75;
}
return chunks.join("\n");
return chunks.join("\r\n");
}
private generateICSFile(
@ -135,7 +135,7 @@ export class ICSGenerator {
if (lines.length <= 10) {
this.debug("Skipping empty ICS file:", filepath);
} else {
writeFileSync(filepath, lines.join("\n"), "utf-8");
writeFileSync(filepath, lines.join("\r\n"), "utf-8");
}
}
}