mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-23 00:35:23 +00:00
增加Inspector清理功能
This commit is contained in:
@@ -28,6 +28,10 @@ export class Hint {
|
||||
private inspector: Inspector = null;
|
||||
constructor(inspector: Inspector) {
|
||||
this.inspector = inspector;
|
||||
document.addEventListener(DocumentEvent.InspectorClear, () => {
|
||||
this.cleanHover();
|
||||
this.cleanSelected();
|
||||
});
|
||||
document.addEventListener(DocumentEvent.GameInspectorBegan, (event: CustomEvent) => {
|
||||
const el = this.getTargetElement();
|
||||
if (!el) {
|
||||
|
Reference in New Issue
Block a user