mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
optimize as suggested
This commit is contained in:
@@ -11,7 +11,7 @@ async function isProxyEnabled(): Promise<boolean>{
|
||||
if(!key.exists){ throw new Error("Key \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\" not exist"); }
|
||||
const registryValue = key.values.ProxyEnable as RegDwordValue;
|
||||
if(!registryValue){ throw new Error("Value \"ProxyEnable\" not exist"); }
|
||||
return (1 === registryValue.value) ? true : false;
|
||||
return (1 === registryValue.value);
|
||||
}
|
||||
|
||||
async function getProxyServer(): Promise<string>{
|
||||
|
||||
Reference in New Issue
Block a user