mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 12:29:35 +01:00
remove template literal
This commit is contained in:
parent
efeade2125
commit
eb5923a82d
@ -10,7 +10,7 @@ if (endPoint) {
|
|||||||
|
|
||||||
const tracker = fs.readFileSync(file);
|
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}.`);
|
console.log(`Updated tracker endpoint: ${endPoint}.`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user