chore(page-controller): remove accidental debug console.log calls
Two debug log statements were left in production code: - `isScrollableElement()` logged `scrollData!!!` for every scrollable element found during DOM tree construction. Because the DOM is rebuilt on every agent action, this fired repeatedly and also triggered unnecessary JSON serialisation of scroll metrics on the hot path. - `SimulatorMask.dispose()` logged 'dispose SimulatorMask' every time the highlight overlay was torn down. Neither had a structured prefix or was gated behind a debug flag. Removing both silences console noise for end users and removes the serialisation overhead in the scroll-detection hot path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -552,8 +552,6 @@ export default (
|
||||
scrollData: scrollData,
|
||||
})
|
||||
|
||||
console.log('scrollData!!!', scrollData)
|
||||
|
||||
return scrollData
|
||||
}
|
||||
|
||||
|
||||
@@ -209,7 +209,6 @@ export class SimulatorMask extends EventTarget {
|
||||
|
||||
dispose() {
|
||||
this.#disposed = true
|
||||
console.log('dispose SimulatorMask')
|
||||
this.motion?.dispose()
|
||||
this.wrapper.remove()
|
||||
this.dispatchEvent(new Event('dispose'))
|
||||
|
||||
Reference in New Issue
Block a user