fix ui: hide some debug to window array
This commit is contained in:
parent
bc4947b486
commit
fcfd55f35d
1 changed files with 6 additions and 3 deletions
|
|
@ -21,7 +21,10 @@ export default class StylesManager {
|
||||||
private skipCSSLinks: Array<string> = []; // should be common for all pages
|
private skipCSSLinks: Array<string> = []; // should be common for all pages
|
||||||
private abortController = new AbortController()
|
private abortController = new AbortController()
|
||||||
|
|
||||||
constructor(private readonly screen: Screen, private readonly setLoading: (flag: boolean) => void) {}
|
constructor(private readonly screen: Screen, private readonly setLoading: (flag: boolean) => void) {
|
||||||
|
// @ts-ignore
|
||||||
|
window.repl_skippedLinks = window.repl_skippedLinks || []
|
||||||
|
}
|
||||||
|
|
||||||
reset():void {
|
reset():void {
|
||||||
this.linkLoadingCount = 0;
|
this.linkLoadingCount = 0;
|
||||||
|
|
@ -39,8 +42,8 @@ export default class StylesManager {
|
||||||
|| this.skipCSSLinks.includes(value)
|
|| this.skipCSSLinks.includes(value)
|
||||||
|| node.ownerDocument !== this.screen.document
|
|| node.ownerDocument !== this.screen.document
|
||||||
) {
|
) {
|
||||||
|
// @ts-ignore
|
||||||
logger.log('skipped', node, value, this.abortController.signal.aborted, this.skipCSSLinks.includes(value), node.ownerDocument !== this.screen.document)
|
window.repl_skippedLinks?.push(['skipped', node, value, this.abortController.signal.aborted, this.skipCSSLinks.includes(value), node.ownerDocument !== this.screen.document])
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
this.setLoading(true);
|
this.setLoading(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue