https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 6af27ec2961eab2855c6d9b88972ed25a9aaaf12 authored by Yutaka Hirano on 24 April 2018, 03:27:42 UTC
fix
Tip revision: 6af27ec
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