added the app name in the document title and fixed the double initial load on records list
This commit is contained in:
@@ -859,25 +859,6 @@ export default class CommonHelper {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the page document title.
|
||||
*
|
||||
* @param {String} title
|
||||
* @param {String} [suffix]
|
||||
*/
|
||||
static setDocumentTitle(title, suffix = "PocketBase") {
|
||||
let parts = [];
|
||||
if (!CommonHelper.isEmpty(title)) {
|
||||
parts.push(title.trim());
|
||||
}
|
||||
|
||||
if (!CommonHelper.isEmpty(suffix)) {
|
||||
parts.push(suffix.trim());
|
||||
}
|
||||
|
||||
document.title = parts.join(' - ')
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizes and append a value to the provided form data.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user