mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
utf-8 --> utf8
This commit is contained in:
parent
5d5eb93baa
commit
8c6400ab2c
@ -23,7 +23,7 @@ const path = require("path");
|
||||
* @param {string} secondaryColor Secondary color for the new svg
|
||||
*/
|
||||
module.exports.buildColorizedSVG = function (svgLocation, primaryColor, secondaryColor) {
|
||||
const svgCode = fs.readFileSync(svgLocation, { encoding: "utf-8"});
|
||||
const svgCode = fs.readFileSync(svgLocation, { encoding: "utf8"});
|
||||
let coloredSVGCode = svgCode.replaceAll("#ff00ff", primaryColor);
|
||||
coloredSVGCode = coloredSVGCode.replaceAll("#00ffff", secondaryColor);
|
||||
const fileName = svgLocation.match(/.+\/(.+\.svg)/)[1];
|
||||
|
Loading…
Reference in New Issue
Block a user