@guidepup/setup
Version:
Setup your environment for screen-reader automation.
15 lines (14 loc) • 512 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createNvdaRegistryKey = createNvdaRegistryKey;
const regedit_1 = require("regedit");
const constants_1 = require("./constants");
const errors_1 = require("../errors");
async function createNvdaRegistryKey() {
try {
await regedit_1.promisified.createKey([constants_1.SUB_KEY_GUIDEPUP_NVDA]);
}
catch (e) {
throw new Error(`${errors_1.ERR_WINDOWS_UNABLE_TO_UPDATE_REGISTRY}\n\n${e.message}`);
}
}