Use the file name as initial title

This commit is contained in:
yflory
2017-02-21 17:42:58 +01:00
parent 20b08a7847
commit c72bbd4c37
6 changed files with 33 additions and 11 deletions

View File

@@ -567,7 +567,11 @@ define([
} else {
APP.proxy.info.defaultTitle = defaultName;
}
updateTitle(APP.proxy.info.title || defaultName);
if (Cryptpad.initialName && !APP.proxy.info.title) {
updateTitle(Cryptpad.initialName);
} else {
updateTitle(APP.proxy.info.title || defaultName);
}
// Description
var resize = function () {