Bug 1320143 - Remove String generics uses in mobile/android/chrome/content. r=sebastian
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 24 Nov 2016 13:18:09 -0800
changeset 324755 26551118afb7716ed8f789acf84487c9f184286c
parent 324754 a42ceecb226008ea2b33701ebfd8986e05521b7d
child 324756 c90a24c73ffff6e6302d7c040f3bdd7457fe1871
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewerssebastian
bugs1320143
milestone53.0a1
Bug 1320143 - Remove String generics uses in mobile/android/chrome/content. r=sebastian
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -2035,17 +2035,17 @@ var BrowserApp = {
     }
 
     // Eliminate values if they're present in the default.
     let chosen;
     if (defaultAccept) {
       // intl.accept_languages is a comma-separated list, with no q-value params. Those
       // are added when the header is generated.
       chosen = defaultAccept.split(",")
-                            .map(String.trim)
+                            .map((x) => x.trim())
                             .filter((x) => (x != appLocale && x != osLocale));
     } else {
       chosen = [];
     }
 
     if (osLocale) {
       chosen.unshift(osLocale);
     }