Skip to content

Commit

Permalink
Merge pull request #1933 from uProxy/dborkan-firefox-urls
Browse files Browse the repository at this point in the history
Fix Firefox URL matching
  • Loading branch information
dborkan committed Sep 28, 2015
2 parents 221abe8 + 97601c1 commit 8a90384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/firefox/lib/url-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ exports.setup = function(panel, button) {
subject.QueryInterface(Ci.nsIHttpChannel);
var url = subject.URI.spec

if (/https:\/\/www.uproxy.org\/(request|offer)\/(.*)/.test(url)) {
if (/^https:\/\/www.uproxy.org\/(request|offer)\/(.*)/.test(url)) {
panel.port.emit('copyPasteUrlData', url);
} else if (/https:\/\/www.uproxy.org\/invite\/(.*)/.test(url)) {
} else if (/^https:\/\/www.uproxy.org\/invite\/(.*)/.test(url)) {
panel.port.emit('inviteUrlData', url);
} else {
return;
Expand Down

0 comments on commit 8a90384

Please sign in to comment.