https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c6fbe7e7254917992588d44e082a540b37abd035 authored by Josh Matthews on 14 March 2018, 15:06:50 UTC
Add a lint to catch adding files that would otherwise be ignored by git.
Tip revision: c6fbe7e
constants.js
//This file requires server-side substitutions and must be included as constants.js?pipe=sub

var PORT = "{{ports[ws][0]}}";
var PORT_SSL = "{{ports[wss][0]}}";

var SCHEME_DOMAIN_PORT;
if (location.search == '?wss') {
  SCHEME_DOMAIN_PORT = 'wss://{{host}}:' + PORT_SSL;
} else {
  SCHEME_DOMAIN_PORT = 'ws://{{host}}:' + PORT;
}
back to top