import { createNativePortRouter } from "./native-port-router.js";

const router = createNativePortRouter({
  connectNative: (name) => chrome.runtime.connectNative(name),
  now: () => performance.now()
});

chrome.runtime.onConnect.addListener((port) => {
  if (port.name === "murtco-pdf-drag") {
    router.attach(port);
  }
});
