Rename task app heading

This commit is contained in:
Admin 2026-09-17 08:52:46 +00:00
parent 9d7c652c81
commit f000865e1e

View File

@ -34,8 +34,11 @@ 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.replace('</head>', `${layoutPatch}</head>`); 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); return originalEnd.call(this, chunk, encoding, callback);
}; };