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