From 9d7c652c817e9264464d55159ca0c8c58966d710 Mon Sep 17 00:00:00 2001 From: Admin Date: Thu, 17 Sep 2026 08:45:34 +0000 Subject: [PATCH] Tidy CRUD task and priority layout --- wrapper.js | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/wrapper.js b/wrapper.js index 929ef00..12d6fb7 100644 --- a/wrapper.js +++ b/wrapper.js @@ -2,10 +2,40 @@ import http from 'node:http'; const originalEnd = http.ServerResponse.prototype.end; +const layoutPatch = ``; + http.ServerResponse.prototype.end = function (chunk, encoding, callback) { - if (typeof chunk === 'string' && chunk.includes('')) { - const badge = '
v2 ยท live update
'; - chunk = chunk.replace('', `${badge}`); + if (typeof chunk === 'string' && chunk.includes('')) { + chunk = chunk.replace('', `${layoutPatch}`); } return originalEnd.call(this, chunk, encoding, callback); };