mirror of https://github.com/calzoneman/sync.git
Fix channelwidget.html
This commit is contained in:
parent
52d9663eb7
commit
654ce1e886
|
@ -27,6 +27,10 @@
|
|||
<script src="assets/js/iourl.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
var p = document.location + "";
|
||||
var host = p.replace("http://", "");
|
||||
if(host.indexOf("/") != -1) {
|
||||
host = host.substring(0, host.indexOf("/"));
|
||||
}
|
||||
if(p.indexOf("?") != -1) {
|
||||
p = p.substring(p.indexOf("?")+1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue