From b02f3a82f224c3d2669a2fb3fb3a4966617c1d1f Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 16 May 2025 11:43:04 +0200 Subject: [PATCH] half the text --- tracker/tracker/src/main/app/observer/observer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tracker/tracker/src/main/app/observer/observer.ts b/tracker/tracker/src/main/app/observer/observer.ts index 35dd8dae6..d4c98ddfe 100644 --- a/tracker/tracker/src/main/app/observer/observer.ts +++ b/tracker/tracker/src/main/app/observer/observer.ts @@ -393,8 +393,9 @@ export default abstract class Observer { this.inlinerOptions?.forcePlain, (cssText: string, fakeTextId: number) => { this.app.send(CreateTextNode(fakeTextId, id, 0)) - const msg = SetCSSDataURLBased(fakeTextId, cssText, this.app.getBaseHref()) - console.log('fakeTextId', fakeTextId, 'node parent', id, 'cssText', msg) + const halvenText = cssText.substring(0, Math.round(cssText.length / 2)) + const msg = SetCSSDataURLBased(fakeTextId, halvenText, this.app.getBaseHref()) + console.log('fakeTextId', fakeTextId, 'node parent', id, 'cssText', msg, 'half', halvenText) setTimeout(() => { this.app.send(msg) }, 10)