strip www. from block-image contextmenu
git-svn-id: svn://10.0.0.236/trunk@145327 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7c3cf78ac7
commit
d4df3aeff4
@ -3023,7 +3023,7 @@ nsContextMenu.prototype = {
|
||||
var uri = Components.classes['@mozilla.org/network/standard-url;1'].createInstance(Components.interfaces.nsIURI);
|
||||
uri.spec = this.imageURL;
|
||||
|
||||
var shortenedUriHost = uri.host
|
||||
var shortenedUriHost = uri.host.replace(/^www\./i,"");
|
||||
if (shortenedUriHost.length > 15)
|
||||
shortenedUriHost = shortenedUriHost.substr(0,15) + "...";
|
||||
blockImage.label = gNavigatorBundle.getFormattedString ("blockImages", [shortenedUriHost]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user