tracker: update css inject

This commit is contained in:
nick-delirium 2025-04-25 10:17:39 +02:00
parent 70390920cd
commit f5f47103c3
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
import logger from 'App/logger';
import { resolveCSS } from '../../messages/rewriter/urlResolve';
import type Screen from '../../Screen/Screen';
import type { Message, SetNodeScroll } from '../../messages';

View file

@ -394,7 +394,7 @@ export default abstract class Observer {
(cssText: string, fakeTextId: number) => {
this.app.send(CreateTextNode(fakeTextId, id, 0))
setTimeout(() => {
this.app.send(SetNodeData(fakeTextId, cssText))
this.app.send(SetCSSDataURLBased(fakeTextId, cssText, this.app.getBaseHref()))
}, 10)
}
)