Merge branch 'newtoolbar' into hpbs
This commit is contained in:
@@ -491,14 +491,16 @@ define([
|
||||
var renameCb = function (err, title) {
|
||||
if (err) { return; }
|
||||
document.title = title;
|
||||
APP.proxy.info.title = title;
|
||||
APP.proxy.info.title = title === defaultName ? "" : title;
|
||||
};
|
||||
|
||||
var suggestName = function (fallback) {
|
||||
return (document.title === defaultName) ? "" : document.title;
|
||||
if (document.title === defaultName) {
|
||||
return fallback || "";
|
||||
}
|
||||
return document.title || defaultName || "";
|
||||
};
|
||||
|
||||
|
||||
var copyObject = function (obj) {
|
||||
return JSON.parse(JSON.stringify(obj));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user