Rename task app heading
This commit is contained in:
parent
9d7c652c81
commit
f000865e1e
@ -34,9 +34,12 @@ const layoutPatch = `<style id="layout-v3">
|
|||||||
</style>`;
|
</style>`;
|
||||||
|
|
||||||
http.ServerResponse.prototype.end = function (chunk, encoding, callback) {
|
http.ServerResponse.prototype.end = function (chunk, encoding, callback) {
|
||||||
if (typeof chunk === 'string' && chunk.includes('</head>')) {
|
if (typeof chunk === 'string') {
|
||||||
|
chunk = chunk.replaceAll('Arrowstack Tasks', 'i love you tasks');
|
||||||
|
if (chunk.includes('</head>')) {
|
||||||
chunk = chunk.replace('</head>', `${layoutPatch}</head>`);
|
chunk = chunk.replace('</head>', `${layoutPatch}</head>`);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return originalEnd.call(this, chunk, encoding, callback);
|
return originalEnd.call(this, chunk, encoding, callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user