MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / isDevEnvironment

Method isDevEnvironment

src/lib/FancyError.ts:18–22  ·  view source on GitHub ↗

* Check if we're in a development environment (file:// protocol or localhost)

()

Source from the content-addressed store, hash-verified

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

Callers 1

popMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected