devMode
Description
Retrieves information about the current mode. In developer mode, the system allows running a single application at a time, assigning port 6080 by default when available.
Syntax
virtualUI.devMode
Type
Boolean
Values
| Value | Description |
|---|---|
true |
Developer mode is active |
false |
Developer mode is inactive (production mode) |
Remarks
The devMode property is read-only and indicates whether the application is running in development mode. In development mode:
- Only a single application instance can run at a time
- Port 6080 is assigned by default when available
- Useful for debugging and testing purposes
Example
var virtualUI = new Thinfinity.VirtualUI();
if (virtualUI.devMode === true) {
console.log('Running in development mode');
// Enable debug logging
// Show developer tools
// Use development settings
} else {
console.log('Running in production mode');
// Use production settings
// Disable verbose logging
}