mapbox-gl-controls
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -123,8 +123,4 @@ function _classCallCheck(instance, Constructor) { | ||
var language = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.browserLanguage(); | ||
if (this.supportedLanguages.indexOf(language) < 0) { | ||
throw new Error("Language ".concat(language, " is not supported")); | ||
} | ||
var lang = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.browserLanguage(); | ||
var language = this.supportedLanguages.indexOf(lang) < 0 ? 'mul' : lang; | ||
var style = this.map.getStyle(); | ||
@@ -159,3 +155,3 @@ var languageField = this.getLanguageField(language); | ||
return null; | ||
return 'mul'; | ||
} | ||
@@ -162,0 +158,0 @@ }]); |
{ | ||
"name": "mapbox-gl-controls", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://bravecow.github.io/mapbox-gl-controls/", |
@@ -39,7 +39,4 @@ const SUPPORTED_LANGUAGES = ['en', 'es', 'fr', 'de', 'ru', 'zh', 'pt', 'ar', 'ja', 'ko', 'mul']; | ||
setLanguage(language = this.browserLanguage()) { | ||
if (this.supportedLanguages.indexOf(language) < 0) { | ||
throw new Error(`Language ${language} is not supported`); | ||
} | ||
setLanguage(lang = this.browserLanguage()) { | ||
const language = this.supportedLanguages.indexOf(lang) < 0 ? 'mul' : lang; | ||
const style = this.map.getStyle(); | ||
@@ -77,3 +74,3 @@ const languageField = this.getLanguageField(language); | ||
} | ||
return null; | ||
return 'mul'; | ||
} | ||
@@ -80,0 +77,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52262
1259