diff options
author | Teddy Wing | 2018-08-04 19:55:03 +0200 |
---|---|---|
committer | Teddy Wing | 2018-08-04 19:55:03 +0200 |
commit | dbebdabda3eb1f3edc52328c2c069c7c6b3fc9ab (patch) | |
tree | 52ac425004a1a79e90b854091e73ab9a115d09ed /content.js | |
parent | 6d9a9e792918389bae732a7ccc33741bf449dccb (diff) | |
download | Legibility-dbebdabda3eb1f3edc52328c2c069c7c6b3fc9ab.tar.bz2 |
content.js: Include subdomain
Include the subdomain when matching filenames. This is less general, but
allows us to match more precisely. I needed to modify CSS on a
`subdomain.github.io` blog, and of course we don't want to modify _all_
`github.io` styles.
Diffstat (limited to 'content.js')
-rw-r--r-- | content.js | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -21,9 +21,6 @@ if (chrome) { browser = chrome; } -var domain = location.hostname - .split('.') - .slice(-2) - .join('.'); +var domain = location.hostname; browser.runtime.sendMessage({ domain: domain }); |