Fix wrong pad title in drive

This commit is contained in:
yflory
2018-06-11 10:33:35 +02:00
parent 1775638d00
commit 921e6eb3c3
3 changed files with 10 additions and 4 deletions

View File

@@ -312,7 +312,8 @@ define([
var title = currentTabTitle.replace(/\{title\}/g, currentTitle || 'CryptPad');
document.title = title;
};
sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newTitle, cb) {
sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newData, cb) {
var newTitle = newData.title || newData.defaultTitle;
currentTitle = newTitle;
setDocumentTitle();
var data = {