Skip to content

Commit

Permalink
added 0x before address name when sent
Browse files Browse the repository at this point in the history
  • Loading branch information
rivasd committed Sep 9, 2016
1 parent 00f6399 commit cd6228a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions app/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ $(function(){

$("#activate").click(function(evt){
//TODO: check if already running
chrome.runtime.sendMessage({
target: 'hardware',
action: 'setup',
payload: $("#port-parallel").val()
});

chrome.storage.local.set({
'port-parallel': $("#port-parallel").val()
});
if($("#port-parallel").val()){
chrome.runtime.sendMessage({
target: 'hardware',
action: 'setup',
payload: "0x"+$("#port-parallel").val()
});
chrome.storage.local.set({
'port-parallel': $("#port-parallel").val()
});
};

window.close();
$(this).hide();
Expand Down

0 comments on commit cd6228a

Please sign in to comment.