mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 16:38:41 +00:00
chrome bug fix
This commit is contained in:
parent
1a84202c02
commit
527327eb14
@ -90,7 +90,7 @@ export enum Msg {
|
|||||||
RequestLogData = "request-log-data",
|
RequestLogData = "request-log-data",
|
||||||
|
|
||||||
RequestSetProperty = "request-set-property",
|
RequestSetProperty = "request-set-property",
|
||||||
ResponseSetProperty = "update-property",
|
ResponseSetProperty = "response-set-property",
|
||||||
}
|
}
|
||||||
|
|
||||||
export class PluginEvent {
|
export class PluginEvent {
|
||||||
|
@ -30,7 +30,7 @@ class Bridge implements TestClient {
|
|||||||
const data = PluginEvent.create(event);
|
const data = PluginEvent.create(event);
|
||||||
console.log(...this.terminal.chunkMessage(data.toChunk()));
|
console.log(...this.terminal.chunkMessage(data.toChunk()));
|
||||||
if (data.valid && data.isTargetDevtools()) {
|
if (data.valid && data.isTargetDevtools()) {
|
||||||
this.emitter.emit(data.msg, data.data);
|
this.emitter.emit(data.msg, data);
|
||||||
} else {
|
} else {
|
||||||
console.log(JSON.stringify(event));
|
console.log(JSON.stringify(event));
|
||||||
debugger;
|
debugger;
|
||||||
|
@ -44,7 +44,7 @@ export default defineComponent({
|
|||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
const { config } = storeToRefs(appStore());
|
const { config } = storeToRefs(appStore());
|
||||||
// 仅在web环境显示
|
// 仅在web环境显示
|
||||||
const show = ref(__DEV__ && !(chrome && chrome.runtime));
|
const show = ref(__DEV__);
|
||||||
// 测试发送的是纯数据
|
// 测试发送的是纯数据
|
||||||
const testData = {
|
const testData = {
|
||||||
uuid: "d1NHXHs35F1rbFJZKeigkl",
|
uuid: "d1NHXHs35F1rbFJZKeigkl",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user