Commit 7907168d authored by Ahoy's avatar Ahoy

protocol

parent d78b6397
Pipeline #18138074 passed with stages
in 42 seconds
......@@ -158,7 +158,9 @@ function yo(sel) {
i.setAttribute('height', h);
yohoho.setAttribute('style', style);
var protocol = window.top.location.protocol || 'http';
var protocol = (window && window.top && window.top.location && window.top.location.protocol)
? window.top.location.protocol
: 'https';
httpGetAsync(protocol + '//4h0y.yohoho.cc', p,
function (players) {
var first = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment