cidaas-javascript-sdk 2.2.9 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cidaas-javascript-sdk",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",
@@ -676,9 +676,9 @@ WebAuth.prototype.getRegistrationSetup = function (options) {
676
676
  };
677
677
  http.open("GET", _serviceURL, true);
678
678
  http.setRequestHeader("Content-type", "application/json");
679
- if (window.localeSettings) {
680
- http.setRequestHeader("accept-language", window.localeSettings);
681
- }
679
+ const acceptLanguage = options.acceptlanguage ? options.acceptlanguage : window?.localeSettings;
680
+ http.setRequestHeader("accept-language", acceptLanguage);
681
+
682
682
  http.send();
683
683
  } catch (ex) {
684
684
  reject(ex);