mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 01:46:58 +01:00
remove extra double quotes from replace.
This commit is contained in:
parent
53557f00b4
commit
efeade2125
@ -10,7 +10,7 @@ if (endPoint) {
|
||||
|
||||
const tracker = fs.readFileSync(file);
|
||||
|
||||
fs.writeFileSync(path.resolve(file), tracker.toString().replace(/\/api\/send/g, `"${endPoint}"`));
|
||||
fs.writeFileSync(path.resolve(file), tracker.toString().replace(/\/api\/send/g, `${endPoint}`));
|
||||
|
||||
console.log(`Updated tracker endpoint: ${endPoint}.`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user