Skip to content

Commit

Permalink
Fixed an issue where subscription and user page loses context menus
Browse files Browse the repository at this point in the history
  • Loading branch information
khloke committed Nov 12, 2015
1 parent 8cda287 commit f796c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/content_scripts/context-menu-content-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function createContextMenu(linkUrl) {
}
} else if (linkUrl && linkUrl.match('^/.*$')) {
var tabUrl = window.location.href;
var patternMatch = tabUrl.match('^(https|http)://(.+)/.*$');
var patternMatch = tabUrl.match('^(https|http)://([^/]+)/.*$');
if (patternMatch) {
chrome.extension.sendMessage({action: 'createContextMenu', link: patternMatch[1] + '://' + patternMatch[2] + linkUrl}, function (response) {});
} else {
Expand Down

0 comments on commit f796c43

Please sign in to comment.