Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('body').on('click', '.cadastro', function(){
- chrome.tabs.create({ url: url }, function(tab)
- {
- chrome.tabs.query({active: false, currentWindow: true}, function(tabs) {
- chrome.tabs.executeScript({code:"console.log('"+tab.id+"')"});
- chrome.tabs.sendMessage(
- tab.id,
- {"greeting": "hello", 'data': dados}
- );
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement