feat: disabled enabledOrigins handling and clean up unused code in webrtc-internals-exporter
This commit is contained in:
@@ -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",
|
||||
);
|
||||
|
Reference in New Issue
Block a user