I am looking to transfer a variable named "website_hostname" from the content script to the background script. This variable holds the hostname of the website you are currently visiting.
Content Script:
var website_hostname = window.location.href;
//Code for sending website_hostname
Background Script:
// Retrieve website_hostname