@virtualdisplay.io/client 3.2.0 → 3.2.2
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/CHANGELOG.md +12 -0
- package/dist/virtualdisplay.client.cjs.js +3 -3
- package/dist/virtualdisplay.client.cjs.js.map +1 -1
- package/dist/virtualdisplay.client.es.js +6 -4
- package/dist/virtualdisplay.client.es.js.map +1 -1
- package/dist/virtualdisplay.client.umd.js +3 -3
- package/dist/virtualdisplay.client.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -359,8 +359,8 @@ o.getInstance();
|
|
|
359
359
|
o.enableMemoryLogging.bind(o);
|
|
360
360
|
const logger = o.getInstance().child({
|
|
361
361
|
prefix: "Client",
|
|
362
|
-
level: "
|
|
363
|
-
//
|
|
362
|
+
level: "warn"
|
|
363
|
+
// Show warnings and errors by default
|
|
364
364
|
});
|
|
365
365
|
function enableDebugMode() {
|
|
366
366
|
logger.setLevel("debug");
|
|
@@ -369,6 +369,7 @@ function enableDebugMode() {
|
|
|
369
369
|
function isDebugMode() {
|
|
370
370
|
return logger.getLevel() === "debug";
|
|
371
371
|
}
|
|
372
|
+
const __vite_import_meta_env__ = {};
|
|
372
373
|
class IframeBuilder {
|
|
373
374
|
constructor(options, eventBus) {
|
|
374
375
|
this.eventBus = eventBus;
|
|
@@ -421,9 +422,10 @@ class IframeBuilder {
|
|
|
421
422
|
* Get server URL from environment or use default
|
|
422
423
|
*/
|
|
423
424
|
getServerUrl() {
|
|
424
|
-
{
|
|
425
|
-
return
|
|
425
|
+
if (__vite_import_meta_env__?.VITE_VIRTUALDISPLAY_SERVER_HOST !== void 0) {
|
|
426
|
+
return void 0;
|
|
426
427
|
}
|
|
428
|
+
return this.defaultServer;
|
|
427
429
|
}
|
|
428
430
|
/**
|
|
429
431
|
* Get parent element from selector or element
|