Index: build/chrome/cackey.js ================================================================== --- build/chrome/cackey.js +++ build/chrome/cackey.js @@ -130,23 +130,16 @@ */ pinWindow.onClosed.addListener(function() { if (pinWindowDidWork != 1) { console.log("[cackey] The PIN dialog was closed without resubmitting the request, treating it as a failure"); - cackeyMessageIncoming( - { - "data": { - "target": "cackey", - "command": messageEvent.data.command, - "id": messageEvent.data.id, - "status": "error", - "error": "PIN window closed without a PIN being provided" - } - } - ) - - } + messageEvent.data.status = "error"; + messageEvent.data.error = "PIN window closed without a PIN being provided"; + + cackeyMessageIncoming(messageEvent); + } + return; }) /* * Pass this message off to the other window so that it may resubmit the request.