* Check if we're in a development environment (file:// protocol or localhost)
()
| 16 | * Check if we're in a development environment (file:// protocol or localhost) |
| 17 | */ |
| 18 | private static isDevEnvironment (): boolean { |
| 19 | return window.location.protocol.indexOf('file') === 0 || |
| 20 | window.location.hostname === 'localhost' || |
| 21 | window.location.hostname === '127.0.0.1'; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Escape HTML entities to prevent XSS |