added the app name in the document title and fixed the double initial load on records list

This commit is contained in:
Gani Georgiev
2022-07-18 19:44:10 +03:00
parent f8f3ca25ee
commit f56adf26f4
21 changed files with 458 additions and 437 deletions
-19
View File
@@ -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.
*