This repository was archived by the owner on Aug 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
platforms/tktrex/extension/src/app Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ import {
66} from '@shared/extension/app' ;
77import log from '@shared/extension/logger' ;
88import UserSettings from '@shared/extension/models/UserSettings' ;
9- import { sizeCheck } from '@shared/providers/dataDonation.provider ' ;
9+ import { HTMLSize } from '@shared/extension/utils/HTMLSize.utils ' ;
1010import _ from 'lodash' ;
1111import tkHub from '../handlers/hub' ;
1212import { INTERCEPTED_ITEM_CLASS } from '../interceptor/constants' ;
1313
1414export const appLog = log . extend ( 'app' ) ;
15+ const searchSize = HTMLSize ( ) ;
1516
1617export let feedId = refreshUUID ( 0 ) ;
1718export let feedCounter = 0 ;
@@ -205,7 +206,7 @@ const handleSearch = _.debounce((element: Node): void => {
205206 const contentHTML = contentNode ? contentNode . innerHTML : null ;
206207 if ( ! contentNode || ! contentHTML ) return ;
207208
208- const hasNewElements = sizeCheck ( contentNode . innerHTML ) ;
209+ const hasNewElements = searchSize . check ( contentNode . innerHTML ) ;
209210 if ( ! hasNewElements ) return ;
210211
211212 tkHub . dispatch ( {
You can’t perform that action at this time.
0 commit comments