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); };