aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-09-08 01:20:25 -0400
committerAjay <[email protected]>2024-09-08 01:20:25 -0400
commit12e8c7aad8392039b641c0eb414cd22e6b80ecb7 (patch)
tree2079562548e820de18cc5db85f827b7e510205a8 /src/content.ts
parent2a2896786cba795aa2f5b83b8cfcd75842fc2c02 (diff)
downloadSponsorBlock-12e8c7aad8392039b641c0eb414cd22e6b80ecb7.tar.gz
SponsorBlock-12e8c7aad8392039b641c0eb414cd22e6b80ecb7.zip
Add way to copy debug logs from popup
Diffstat (limited to 'src/content.ts')
-rw-r--r--src/content.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content.ts b/src/content.ts
index 398102aa..04c2dcd3 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -346,6 +346,12 @@ function messageListener(request: Message, sender: unknown, sendResponse: (respo
metaKey: request.metaKey
}));
break;
+ case "getLogs":
+ sendResponse({
+ debug: window["SBLogs"].debug,
+ warn: window["SBLogs"].warn
+ });
+ break;
}
sendResponse({});