My function "someFunc" is started by clicking on the button, but does not start when receiving a request. Any thoughts?
Thanks.Code:var someVariable = 'someText'; function someFunc(message) { alert(message); } $('#someBtn').click(function() { someFunc(someVariable); //this run someFunc(); //this run } chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { if (request.action == 'login_on') { alert(request.action); //this work someFunc(request.action); // this don`t run } });


LinkBack URL
About LinkBacks



Reply With Quote
