зеркало из https://github.com/mozilla/gecko-dev.git
strip www. from block-image contextmenu
This commit is contained in:
Родитель
ccebdd1892
Коммит
1dfc704125
|
@ -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]);
|
||||
|
|
Загрузка…
Ссылка в новой задаче