diff --git a/src/Http/Middleware/AssetInjection.php b/src/Http/Middleware/AssetInjection.php
index d122905..99f205c 100644
--- a/src/Http/Middleware/AssetInjection.php
+++ b/src/Http/Middleware/AssetInjection.php
@@ -10,26 +10,28 @@ public function handle($request, Closure $next)
{
$response = $next($request);
- // return $response;
if (! method_exists($response, 'getContent')) {
return $response;
}
$content = $response->getContent();
- if (! is_string($content)) {
+ if (! $content) {
return $response;
}
-
- $castsScripts = '';
+
+ $castsScripts = '