string.contains() => string.includes()

This commit is contained in:
wolfbeast 2018-06-07 08:52:45 +02:00 committed by Roy Tam
commit 1943c044a5

View file

@ -1161,7 +1161,7 @@ this.PlacesUIUtils = {
function PUIU_getImageURLForResolution(aWindow, aURL, aWidth = 16, aHeight = 16) {
let width = Math.round(aWidth * aWindow.devicePixelRatio);
let height = Math.round(aHeight * aWindow.devicePixelRatio);
return aURL + (aURL.contains("#") ? "&" : "#") +
return aURL + (aURL.includes("#") ? "&" : "#") +
"-moz-resolution=" + width + "," + height;
}
};