Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 4346f24

Browse files
committed
this fixes #78
1 parent aeebbd7 commit 4346f24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/tab.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,12 @@ function computeTabState(tabId) {
672672
reqKey = reqKeys[i];
673673
hostname = PageStatsRequests.hostnameFromRequestKey(reqKey);
674674
type = PageStatsRequests.typeFromRequestKey(reqKey);
675+
// rhill 2013-12-10: mind how stylesheets are to be evaluated:
676+
// `stylesheet` or `other`? Depends of domain of request.
677+
// https://github.com/gorhill/httpswitchboard/issues/85
678+
if ( type === 'stylesheet' ) {
679+
type = uriTools.domainFromHostname(hostname) === pageStats.pageDomain ? 'main_frame' : 'other';
680+
}
675681
if ( httpsb.blacklisted(pageUrl, type, hostname) ) {
676682
computedState[type + '|' + hostname] = true;
677683
}

0 commit comments

Comments
 (0)