aboutsummaryrefslogtreecommitdiffstats
path: root/content.js
diff options
context:
space:
mode:
Diffstat (limited to 'content.js')
-rw-r--r--content.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/content.js b/content.js
index bf355f2..7d9c68d 100644
--- a/content.js
+++ b/content.js
@@ -4,4 +4,9 @@ if (chrome) {
browser = chrome;
}
-browser.runtime.sendMessage({ url: 'tmp' });
+var domain = location.hostname
+ .split('.')
+ .slice(-2)
+ .join('.');
+
+browser.runtime.sendMessage({ domain: domain });