https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 92a658cfbe24d0e399a51b060f66869f88f49b6c authored by Ian Kilpatrick on 27 March 2018, 05:07:50 UTC
[css-layout-api] Allow developers to position fragments.
Tip revision: 92a658c
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