feat: disabled enabledOrigins handling and clean up unused code in webrtc-internals-exporter

This commit is contained in:
2025-02-07 10:25:20 +01:00
parent 3a31a30fc7
commit 19ac4dec45
3 changed files with 3 additions and 10 deletions

View File

@@ -15,11 +15,7 @@ const DEFAULT_OPTIONS = {
updateInterval: 2,
gzip: false,
job: "webrtc-internals-exporter",
enabledOrigins: {
"http://*/*": true,
"https://*/*": true,
"https://tube.kobim.cloud": true,
},
enabledOrigins: { },
enabledStats: ["data-channel", "local-candidate", "remote-candidate"]
};
@@ -48,7 +44,7 @@ async function updateTabInfo(tab) {
const tabId = tab.id;
const origin = new URL(tab.url || tab.pendingUrl).origin;
if (options.enabledOrigins && options.enabledOrigins[origin] === true) {
if (options.enabledOrigins) {
const { peerConnectionsPerOrigin } = await chrome.storage.local.get(
"peerConnectionsPerOrigin",
);