@brightspace-ui/intl 3.36.0 → 3.36.1

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.
Files changed (2) hide show
  1. package/lib/localize.js +2 -2
  2. package/package.json +1 -1
package/lib/localize.js CHANGED
@@ -241,13 +241,13 @@ export const getLocalizeClass = (superclass = class {}) => class LocalizeClass e
241
241
  if (oslo.collection) {
242
242
  languageId = supportedLocalesDetails.find(l => l.code === osloLang || l.pack === osloLang)?.id;
243
243
  if (languageId) {
244
- const batch = oslo.batch && new URL(oslo.batch, document.location.origin);
244
+ const batch = oslo.batch && new URL(oslo.batch, self.origin);
245
245
  if (batch && languageId !== batch.searchParams.get('languageId')) {
246
246
  batch.searchParams.set('languageId', languageId);
247
247
  oslo.batch = batch.toString();
248
248
  }
249
249
 
250
- const collection = new URL(oslo.collection, document.location.origin);
250
+ const collection = new URL(oslo.collection, self.origin);
251
251
  if (languageId !== collection.searchParams.get('languageId')) {
252
252
  collection.searchParams.set('languageId', languageId);
253
253
  oslo.collection = collection.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/intl",
3
- "version": "3.36.0",
3
+ "version": "3.36.1",
4
4
  "description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.",
5
5
  "main": "lib/number.js",
6
6
  "type": "module",