mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
application id in body tag
This commit is contained in:
@@ -220,6 +220,7 @@ class Starter
|
||||
|
||||
$clientManager->setBasePath($this->clientManager->getBasePath());
|
||||
$clientManager->setApiUrl('api/v1/portal-access/' . $portalId);
|
||||
$clientManager->setApplicationId($portalId);
|
||||
|
||||
$params = RunnerParams::fromArray([
|
||||
'entryPoint' => $entryPoint,
|
||||
|
||||
@@ -49,6 +49,7 @@ class ClientManager
|
||||
private string $favicon196 = 'client/img/favicon196x196.png';
|
||||
private string $basePath = '';
|
||||
private string $apiUrl = 'api/v1';
|
||||
private string $applicationId = 'espocrm';
|
||||
|
||||
private string $nonce;
|
||||
|
||||
@@ -190,7 +191,7 @@ class ClientManager
|
||||
);
|
||||
|
||||
$data = [
|
||||
'applicationId' => 'espocrm',
|
||||
'applicationId' => $this->applicationId,
|
||||
'apiUrl' => $this->apiUrl,
|
||||
'applicationName' => $this->config->get('applicationName', 'EspoCRM'),
|
||||
'cacheTimestamp' => $cacheTimestamp,
|
||||
@@ -384,4 +385,9 @@ class ClientManager
|
||||
{
|
||||
$this->apiUrl = $apiUrl;
|
||||
}
|
||||
|
||||
public function setApplicationId(string $applicationId): void
|
||||
{
|
||||
$this->applicationId = $applicationId;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<body data-id="{{applicationId}}">
|
||||
<div class="container content"></div>
|
||||
<footer>
|
||||
<p class="credit small">© 2024
|
||||
|
||||
Reference in New Issue
Block a user