Skip to content

EspoCRM – Open Source CRM Application

Ref

Yurii6804cb3edcae
diff --git a/client/src/controllers/base.js b/client/src/controllers/base.js
index 39088790d7..738b3d08b8 100644
--- a/client/src/controllers/base.js
+++ b/client/src/controllers/base.js
@@ -164,7 +164,11 @@ class BaseController extends Controller {
logout() {
const title = this.getConfig().get('applicationName') || 'EspoCRM';
- $('head title').text(title);
+ const titleElement = document.querySelector('head title');
+
+ if (titleElement) {
+ titleElement.textContent = title;
+ }
this.trigger('logout');
}