mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-23 00:35:23 +00:00
打印node名字
This commit is contained in:
@@ -99,6 +99,23 @@ export class Inspector extends InjectEvent {
|
||||
logFunction(value);
|
||||
break;
|
||||
}
|
||||
case Msg.RequestLogCustom: {
|
||||
const logFunction = console.log;
|
||||
logFunction(pluginEvent.data);
|
||||
}
|
||||
case Msg.ReqWriteClipboard: {
|
||||
document.body.focus();
|
||||
navigator.clipboard
|
||||
.writeText(pluginEvent.data)
|
||||
|
||||
.then(() => {
|
||||
console.log("ok");
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log("fail", e);
|
||||
});
|
||||
break;
|
||||
}
|
||||
case Msg.RequestVisible: {
|
||||
const uuid: string = pluginEvent.data;
|
||||
const node = this.inspectorGameMemoryStorage[uuid];
|
||||
|
Reference in New Issue
Block a user