speaker-calibration 2.2.169 → 2.2.171

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": "speaker-calibration",
3
- "version": "2.2.169",
3
+ "version": "2.2.171",
4
4
  "description": "Speaker calibration library for auditory testing",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
@@ -212,7 +212,7 @@ class Speaker extends AudioPeer {
212
212
  };
213
213
  const queryString = this.queryStringFromObject(queryStringParameters);
214
214
  this.uri = this.siteUrl + queryString;
215
- if (this.isSmartPhone) {
215
+ if (true) {
216
216
  // Display QR code for the participant to scan
217
217
  const qrCanvas = document.createElement('canvas');
218
218
  qrCanvas.setAttribute('id', 'qrCanvas');
@@ -221,9 +221,14 @@ class Speaker extends AudioPeer {
221
221
  });
222
222
  const explanation = document.createElement("p");
223
223
  explanation.id = "skipQRExplanation";
224
+ explanation.style = `
225
+ overflow-wrap: break-word; /* Ensure long URLs or text break properly */
226
+ user-select: text;
227
+ `;
228
+
224
229
  explanation.innerHTML = phrases.RC_skipQR_ExplanationWithoutPreferNot[this.language]
225
- .replace("xxx", `<b>${this.uri}</b>`)
226
- .replace("XXX", `<b>${this.uri}</b>`);
230
+ .replace("xxx", `<b style="user-select: text">${this.uri}</b>`)
231
+ .replace("XXX", `<b style="user-select: text">${this.uri}</b>`);
227
232
 
228
233
  const qrImage = new Image(400, 400);
229
234
  qrImage.setAttribute('id', 'compatibilityCheckQRImage');
@@ -266,7 +271,7 @@ class Speaker extends AudioPeer {
266
271
  proceedButton.innerHTML = 'Proceed';
267
272
  proceedButton.onclick = () => {
268
273
  // open the link in a new tab
269
- window.open(uri, '_blank');
274
+ window.open(this.uri, '_blank');
270
275
  // remove the button
271
276
  document.getElementById('calibrationProceedButton').remove();
272
277
  };