speaker-calibration 2.2.169 → 2.2.170
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/dist/example/i18n.js +1149 -1364
- package/dist/main.js +2 -2
- package/package.json +1 -1
- package/src/peer-connection/speaker.js +5 -1
package/package.json
CHANGED
|
@@ -221,6 +221,10 @@ class Speaker extends AudioPeer {
|
|
|
221
221
|
});
|
|
222
222
|
const explanation = document.createElement("p");
|
|
223
223
|
explanation.id = "skipQRExplanation";
|
|
224
|
+
explanation.style = `
|
|
225
|
+
word-break: break-all; /* Break long words or URLs */
|
|
226
|
+
overflow-wrap: break-word; /* Ensure long URLs or text break properly */
|
|
227
|
+
`;
|
|
224
228
|
explanation.innerHTML = phrases.RC_skipQR_ExplanationWithoutPreferNot[this.language]
|
|
225
229
|
.replace("xxx", `<b>${this.uri}</b>`)
|
|
226
230
|
.replace("XXX", `<b>${this.uri}</b>`);
|
|
@@ -266,7 +270,7 @@ class Speaker extends AudioPeer {
|
|
|
266
270
|
proceedButton.innerHTML = 'Proceed';
|
|
267
271
|
proceedButton.onclick = () => {
|
|
268
272
|
// open the link in a new tab
|
|
269
|
-
window.open(uri, '_blank');
|
|
273
|
+
window.open(this.uri, '_blank');
|
|
270
274
|
// remove the button
|
|
271
275
|
document.getElementById('calibrationProceedButton').remove();
|
|
272
276
|
};
|