Skip to content

Commit

Permalink
improve cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 25, 2024
1 parent 6f7c7ee commit 4c08654
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/JsSse.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ public function send(JsExpressionable $action, bool $success = true): void
$ajaxec = $this->getAjaxec($action);
$this->sendEvent(
'',
$this->getApp()->encodeJson(['success' => $success, 'atkjs' => $ajaxec->jsRender()]),
$this->getApp()->encodeJson([
'success' => $success,
'atkjs' => $ajaxec->jsRender(),
]),
'atkSseAction'
);
}
Expand All @@ -103,7 +106,10 @@ public function terminateAjax(JsBlock $ajaxec, $msg = null, bool $success = true
if ($ajaxecStr !== '') {
$this->sendEvent(
'',
$this->getApp()->encodeJson(['success' => $success, 'atkjs' => $ajaxecStr]),
$this->getApp()->encodeJson([
'success' => $success,
'atkjs' => $ajaxecStr,
]),
'atkSseAction'
);
}
Expand Down

0 comments on commit 4c08654

Please sign in to comment.