webpage: move title handling out of sdk
This commit is contained in:
parent
257a0352db
commit
e4c5f7d83e
@ -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);
|
||||
});
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user