Bug 1108382 - Part 7: Do not use non-standard flag argument of String.prototype.replace in dom/mobileconnection/gonk/. r=echen

This commit is contained in:
Tooru Fujisawa 2015-03-01 09:51:33 +09:00
parent ea796feb69
commit c44060fa7c

View File

@ -338,7 +338,7 @@ MobileConnectionProvider.prototype = {
let networkTypes = RIL.RIL_PREFERRED_NETWORK_TYPE_TO_GECKO[index];
supportedNetworkTypes = networkTypes ?
networkTypes.replace("-auto", "", "g").split("/") :
networkTypes.replace(/-auto/g, "").split("/") :
RIL.GECKO_SUPPORTED_NETWORK_TYPES_DEFAULT.split(",");
}