mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-02-14 12:19:04 +00:00
set mime type and correct line returns
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user