Skip to content

Commit 3646533

Browse files
committed
skip when not in Electron context
1 parent a17a5ae commit 3646533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Middleware/PreventRegularBrowserAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PreventRegularBrowserAccess
99
{
1010
public function handle(Request $request, Closure $next)
1111
{
12-
if (app()->runningUnitTests()) {
12+
if (! config('nativephp-internal.running')) {
1313
return $next($request);
1414
}
1515

0 commit comments

Comments
 (0)