Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initializeHotkeys() {
var self = this;
// Register CTRL + C hotkey
const clipboardShortcut = ioHook.registerShortcut([29, 46], (keys) => {
if(config.get("pricecheck") && this.poeFocused) {
// Waiting 100ms before calling the processing method, because the clipboard needs some time to be updated
var timeout = setTimeout(function() {
Pricecheck.getPrice(clipboardy.readSync());
}, 100);
}
});
ioHook.start();
}