feat: update debug extension IDs retrieval to use environment (#1281)

This commit is contained in:
Levi authored and GitHub committed 2026-02-14 17:25:46 +08:00
1 parent a6981d58e9
commit 82d7f8ec81
2 files changed
+8 -4

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

@@ -14,10 +14,14 @@ const _hostName = 'com.gopeed.gopeed';
const _chromeExtensionId = 'mijpgljlfcapndmchhjffkpckknofcnd';
const _edgeExtensionId = 'dkajnckekendchdleoaenoophcobooce';
const _firefoxExtensionId = '{c5d69a8f-2ed0-46a7-afa4-b3a00dc58088}';
const _debugExtensionIds = [
'gjddllnejledbfaeondocjpejpamclkk',
'goaohdfiokcjapgonhofgljfccoccief'
];
List<String> get _debugExtensionIds {
final envValue = Platform.environment['GOPEED_DEBUG_EXTENSION_IDS'] ?? '';
if (envValue.isNotEmpty) {
return envValue.split(',').map((id) => id.trim()).toList();
}
return [];
}
// Windows NativeMessagingHosts registry constants
const _chromeNativeHostsKey = r'Software\Google\Chrome\NativeMessagingHosts';