Advertisement
Guest User

content.js

a guest
Apr 26th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var fieldNas      = $('#nascimento'),
  2.           fieldNome   = $('#nome'),
  3.           fieldCpf       = $('#cpf');
  4.  
  5. chrome.runtime.onMessage.addListener(function (request, sender, response)
  6. {      
  7.         fieldNome.val( request.nome );
  8.         fieldCpf.val( request.cpf );
  9. });
  10.         fieldNas.val( request.nascimento ); // se eu colocar um valor fixo preenche na nova tab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement