mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-06 16:40:32 +00:00
feat: update debug extension IDs retrieval to use environment (#1281)
This commit is contained in:
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';
|
||||
|
||||
Reference in new issue
Block a user