SHARE
TWEET

Untitled

a guest Feb 20th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. chrome.runtime.onMessage.addListener(function (request, response, callback function) {
  2.         reqVariable1 = request[“var1”];
  3.         reqVariable2 = request[“var2”];
  4.         reqVariable3 = request[“var3”];
  5.         reqVariable4 = request[“var4”];
  6.         if(timeout) {
  7.             console.log("Came to process try block");
  8.             messaging(reqVariable1, reqVariable2, reqVariable3,reqVariable4)
  9.         }
  10.        callbackfunction();
  11.         
  12.     });
  13.  
  14.  
  15.  chrome.runtime.sendMessage({“response”: [var1,var2, var3, var4]}, function(response) {
  16.  
  17.           console.log(response);
  18.         })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top