webpage: move title handling out of sdk

This commit is contained in:
mappu 2017-10-08 15:16:57 +13:00
parent 257a0352db
commit e4c5f7d83e
2 changed files with 7 additions and 2 deletions

View File

@ -26,6 +26,12 @@ html, body {
<script type="text/javascript" src="/sdk.js"></script>
<script type="text/javascript">
"use strict";
// Set page title
$.get("/about", function(ret) {
$("title").text(ret.AppTitle);
});
// Load upload widget
contented.init("#surrogate-area", function(items) {
console.log(items);
});

View File

@ -45,7 +45,6 @@ var contented = (function ($, currentScriptPath) {
// Create a new div for ourselves on top of the existing area
$.get(baseURL + "about", function (ret) {
$("title").text(ret.AppTitle);
var extraText = "";
if (ret.MaxUploadBytes > 0) {