-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
21 lines (21 loc) · 686 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<title>Live Video Player</title>
<script src="/config.js"></script>
<script>
var baseHref = '/static/v-' + currentVersion;
/*
var base = document.createElement('base');
base.href = 'http://www.w3.org/';
document.getElementsByTagName('head')[0].appendChild(base);
*/
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState === 4){
var text = xhr.responseText
text = text.replace(/(src|href)="\//g, '$1="' + baseHref + '/')
document.write('<base href="https://' + document.location.host + baseHref + '/" />');
document.write(text)
}
};
xhr.open('GET', baseHref + '/index.html');
xhr.send();
</script>