File: host.js

package info (click to toggle)
openrefine 3.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,440 kB
  • sloc: javascript: 106,758; java: 91,946; xml: 6,634; sh: 614; makefile: 78; python: 71; sql: 59
file content (6 lines) | stat: -rw-r--r-- 159 bytes parent folder | download
1
2
3
4
5
6
class Host {
  static isLocalhost() {
    const localhosts = ['localhost', '127.0.0.1', '::1'];
    return localhosts.includes(window.location.hostname);
  }
}