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:
noririty%jcom.home.ne.jp 2003-07-29 12:41:36 +00:00
parent 7c3cf78ac7
commit d4df3aeff4

View File

@ -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]);