swarm: deleted time header and made redirect a relative path

This commit is contained in:
Coogan 2018-01-17 14:28:09 -06:00
parent f6305fc511
commit f096d85872

View file

@ -182,9 +182,6 @@ var landingPageTemplate = template.Must(template.New("landingPage").Parse(`
<div class="page-title"> <div class="page-title">
<h1>Welcome to Swarm</h1> <h1>Welcome to Swarm</h1>
</div> </div>
<div class="header-right">
<div id="timestamp">{{.Timestamp}}</div>
</div>
</header> </header>
<script type="text/javascript"> <script type="text/javascript">
@ -193,7 +190,7 @@ var landingPageTemplate = template.Must(template.New("landingPage").Parse(`
if (page == "") { if (page == "") {
var page = "theswarm.eth" var page = "theswarm.eth"
} }
var address = "http://" + location.host + "/bzz:/" + page; var address = "/bzz:/" + page;
location.href = address; location.href = address;
console.log(address) console.log(address)
} }