diff --git a/lib/customhandlers/main.js b/lib/customhandlers/main.js index e601258..b0cbc0b 100644 --- a/lib/customhandlers/main.js +++ b/lib/customhandlers/main.js @@ -4,8 +4,9 @@ import SuperGenericApiDevice from "./supergeneric.js"; // add your handlers here export const CustomHandlers = { "hardcoded": { + "disabled": true, "name": "Hardcoded Example Custom Handler", - "description": "Simple custom handler for testing. Values must be changed by directing editing the source. Don't use this unless you're testing the extension.", + "description": "Simple custom handler for testing. Values must be changed by directly editing the source. Don't use this unless you're testing the extension.", "handler": HardcodedDevice }, "supergeneric": { diff --git a/util.js b/util.js index ea0172d..f5a9c1e 100644 --- a/util.js +++ b/util.js @@ -292,7 +292,7 @@ export class CustomHandlerManager { for (const handler in CustomHandlers) { if (CustomHandlers[handler].disabled) { - return; + continue; } const option = document.createElement('option'); option.text = CustomHandlers[handler].name;