Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Filter resource urls away from Like
Browse files Browse the repository at this point in the history
  • Loading branch information
brianking committed Dec 8, 2011
1 parent 934d823 commit f42ecda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/toolbar.js
Expand Up @@ -294,7 +294,7 @@ var facebook = {
},

/**
* Check a url for irregular types (about:, chrome:)
* Check a url for irregular types (about:, chrome:, resource:)
* @parameter aUrl - the url to check
* @return boolean true to filter out (not use the url), false to let it through
*/
Expand All @@ -306,7 +306,7 @@ var facebook = {
var scheme = ioService.extractScheme(aUrl);
// Weed out about and chrome urls
fbLib.debug("Loading " + scheme + "url...");
if (scheme == "about" || scheme == "chrome")
if (scheme == "about" || scheme == "chrome" || scheme == "resource")
return true;
}
return false;
Expand Down

0 comments on commit f42ecda

Please sign in to comment.