isLocalhost()
@blobs/sdk / utils/environment / isLocalhost
isLocalhost():
boolean
Defined in: utils/environment.ts:156
Test whether the current page is loaded from a localhost-style hostname.
Recognizes localhost, 127.0.0.1, [::1], and any *.local hostname.
Always returns false outside the browser.
Returns
boolean
True if running on a localhost-style URL.