tracker: update css inject
This commit is contained in:
parent
70390920cd
commit
f5f47103c3
2 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import logger from 'App/logger';
|
import logger from 'App/logger';
|
||||||
|
import { resolveCSS } from '../../messages/rewriter/urlResolve';
|
||||||
|
|
||||||
import type Screen from '../../Screen/Screen';
|
import type Screen from '../../Screen/Screen';
|
||||||
import type { Message, SetNodeScroll } from '../../messages';
|
import type { Message, SetNodeScroll } from '../../messages';
|
||||||
|
|
|
||||||
|
|
@ -394,7 +394,7 @@ export default abstract class Observer {
|
||||||
(cssText: string, fakeTextId: number) => {
|
(cssText: string, fakeTextId: number) => {
|
||||||
this.app.send(CreateTextNode(fakeTextId, id, 0))
|
this.app.send(CreateTextNode(fakeTextId, id, 0))
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.app.send(SetNodeData(fakeTextId, cssText))
|
this.app.send(SetCSSDataURLBased(fakeTextId, cssText, this.app.getBaseHref()))
|
||||||
}, 10)
|
}, 10)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue