import{L as a,E as s}from"./logger.js";import{K as t}from"./LowCode2.js";const o=new a("devtools"),n=chrome.runtime.connect();o.info("chrome.runtime.connect 成功",n);n.onMessage.addListener(e=>{o.info("port.onMessage 收到消息",e)});n.postMessage("我是来自 devtools port.onMessage 的消息");chrome.runtime.onMessage.addListener((e,r,m)=>{o.info("chrome.runtime.onMessage",e,r)});chrome.devtools.panels.create(s,"images/32.png",`lowcode.html?pageId=${t.DevtoolsPanel}`,e=>{o.info("devtools panel 创建成功",e)});chrome.devtools.panels.elements.createSidebarPane(s,e=>{e.setPage(chrome.runtime.getURL(`lowcode.html?pageId=${t.ElementsSidebarPane}`))});
