Skip to content

Commit

Permalink
update notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Sep 21, 2024
1 parent 11db807 commit 1a4b3a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Core/Middleware/InitialHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function handle(IncomingRequest $request, Closure $next): Response
"default-src 'self' 'unsafe-inline'",
"base-uri 'self';",
"script-src 'self' 'unsafe-inline' unpkg.com blob:",
"font-src 'self' data:",
"font-src 'self' data: unpkg.com",
"img-src 'self' *.leantime.io *.amazonaws.com data: blob: marketplace.localhost",
"frame-src 'self' *.google.com *.microsoft.com *.live.com",
"frame-ancestors 'self' *.google.com *.microsoft.com *.live.com",
Expand Down
4 changes: 1 addition & 3 deletions app/Core/Middleware/StartSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ protected function addCookieToResponse(Response $response, Session $session)
*/
protected function saveSession(IncomingRequest $request)
{
if (!$request->isUnboostedHtmxRequest()) {
$this->manager->driver()->save();
}
$this->manager->driver()->save();
}

/**
Expand Down
2 changes: 2 additions & 0 deletions app/Domain/Notifications/Controllers/GetLatestGrowl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace Leantime\Domain\Notifications\Controllers {

use Illuminate\Support\Facades\Cache;
use Leantime\Core\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;

Expand All @@ -22,6 +23,7 @@ public function get() {


$jsonEncoded = false;

if(session("notification") != ''){
$notificationArray = array(
"notification" => session("notification") ?? '',
Expand Down

0 comments on commit 1a4b3a4

Please sign in to comment.