https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a619744eead89c5105c98040bf77f11c40eaa311 authored by Geoffrey Sneddon on 09 October 2018, 17:34:30 UTC
Only run Windows CI for tools/ changes
Tip revision: a619744
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