extension/backend/content_script.js
//handle message function runs when a message is received from the hook file and if it has the tree data it will fire the sendMessage function
handle message function runs when a message is received from the hook file and if it has the tree data it will fire the sendMessage function
handle message function runs when a message is received from the hook file and if it has the tree data it will fire the sendMessage function
function handleMessage(request, sender, sendResponse) {
  if (request.data && request.data.tree) {
    sendMessage(request.data.tree);
  }
}
function handleMessage ( request , sender , sendResponse ) { if ( request . data && request . data . tree ) { sendMessage ( request . data . tree ) ; } }
handle message function runs when a message is received from the hook file and if it has the tree data it will fire the sendMessage function
handle message function runs when a message is received from the hook file and if it has the tree data it will fire the sendMessage function