From 440ed92f38df5a57a9f8f97117dd0d211c2f5625 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 7 Jun 2018 08:52:45 +0200 Subject: string.contains() => string.includes() --- application/palemoon/components/places/PlacesUIUtils.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/palemoon') 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; } }; -- cgit v1.2.3