summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-07 08:52:45 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-07 08:52:45 +0200
commit440ed92f38df5a57a9f8f97117dd0d211c2f5625 (patch)
tree52a97cce5d1daa58fb01d755c594686be93c2cdc
parent0e550f2fb90ada0b608bc1e1982b100291651806 (diff)
downloadUXP-440ed92f38df5a57a9f8f97117dd0d211c2f5625.tar
UXP-440ed92f38df5a57a9f8f97117dd0d211c2f5625.tar.gz
UXP-440ed92f38df5a57a9f8f97117dd0d211c2f5625.tar.lz
UXP-440ed92f38df5a57a9f8f97117dd0d211c2f5625.tar.xz
UXP-440ed92f38df5a57a9f8f97117dd0d211c2f5625.zip
string.contains() => string.includes()
-rw-r--r--application/palemoon/components/places/PlacesUIUtils.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/palemoon/components/places/PlacesUIUtils.jsm b/application/palemoon/components/places/PlacesUIUtils.jsm
index e90c84152..f62535613 100644
--- a/application/palemoon/components/places/PlacesUIUtils.jsm
+++ b/application/palemoon/components/places/PlacesUIUtils.jsm
@@ -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;
}
};