From 373a2e4ccea642aa57b7d966ec7eacb346c59c2b Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 8 Jun 2020 03:54:49 +0200 Subject: [PATCH] Allow CSS and JS to load in private mode. --- src/Http/Handlers/AssetsHandler.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Http/Handlers/AssetsHandler.php b/src/Http/Handlers/AssetsHandler.php index 5a2d9f45..9f18da38 100644 --- a/src/Http/Handlers/AssetsHandler.php +++ b/src/Http/Handlers/AssetsHandler.php @@ -17,6 +17,10 @@ final class AssetsHandler extends Handler { ], ]; + public function __construct() { + $GLOBALS['misuzuBypassLockdown'] = true; + } + private static function recurse(string $dir): string { $str = ''; $dir = rtrim(realpath($dir), '/') . '/*';