There was an error while loading. Please reload this page.
1 parent 7848e50 commit 983125dCopy full SHA for 983125d
src/Bugphix.php
@@ -21,9 +21,12 @@ public function asset($asset = '')
21
22
public function isAssetsExists()
23
{
24
- $fileHeaders = json_encode(@get_headers($this->asset('/js/app.js')));
25
-
26
- return strpos($fileHeaders, '200 OK') !== false;
+ try{
+ $fileHeaders=get_headers($this->asset('/js/app.js'));
+ return stripos($fileHeaders[0],"200 OK") ? true : false;
27
+ } catch(\Exception $e){
28
+ return false;
29
+ }
30
}
31
32
public function catchError(Exception $e)
0 commit comments