testdriverai 7.9.69-test → 7.9.70-test
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/debugger/index.html +12 -0
- package/docs/docs.json +1 -1
- package/package.json +1 -1
- package/sdk.js +2 -1
package/debugger/index.html
CHANGED
|
@@ -415,6 +415,18 @@
|
|
|
415
415
|
: "TestDriver";
|
|
416
416
|
document.title = `${testFileName} - Debugger`;
|
|
417
417
|
|
|
418
|
+
const shouldDowngradeToHttp =
|
|
419
|
+
window.location.protocol === "https:" &&
|
|
420
|
+
parsedData?.os === "windows" &&
|
|
421
|
+
typeof parsedData?.url === "string" &&
|
|
422
|
+
parsedData.url.startsWith("http://");
|
|
423
|
+
|
|
424
|
+
if (shouldDowngradeToHttp) {
|
|
425
|
+
const redirectUrl = new URL(window.location.href);
|
|
426
|
+
redirectUrl.protocol = "http:";
|
|
427
|
+
window.location.replace(redirectUrl.toString());
|
|
428
|
+
}
|
|
429
|
+
|
|
418
430
|
// Embed the VNC URL in the iframe with token
|
|
419
431
|
iframe.style.display = "block";
|
|
420
432
|
const vncUrl = new URL(parsedData.url);
|
package/docs/docs.json
CHANGED
package/package.json
CHANGED
package/sdk.js
CHANGED
|
@@ -3849,7 +3849,8 @@ CAPTCHA_SOLVER_EOF`,
|
|
|
3849
3849
|
const apiRoot = this.config?.TD_API_ROOT || 'unknown';
|
|
3850
3850
|
const apiKey = this.config?.TD_API_KEY || '';
|
|
3851
3851
|
const maskedKey = apiKey.length > 4 ? '***' + apiKey.slice(-4) : '(not set)';
|
|
3852
|
-
const
|
|
3852
|
+
const channelConfig = require('./lib/resolve-channel.js');
|
|
3853
|
+
const env = process.env.TD_CHANNEL || process.env.TD_ENV || channelConfig.active || 'unknown';
|
|
3853
3854
|
const os = this.os || this.agent?.options?.os || process.env.TD_OS || 'linux';
|
|
3854
3855
|
const sdkVersion = require('./package.json').version;
|
|
3855
3856
|
|