mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 04:40:37 +00:00
no message
This commit is contained in:
parent
a39802ea48
commit
567a77b0be
@ -293,7 +293,8 @@ class IndexController extends InvokeController
|
||||
parse_str($data['query'], $query);
|
||||
$name = Arr::get($query, 'name');
|
||||
$ext = strtolower(Arr::get($query, 'ext'));
|
||||
if ($ext === 'pdf') {
|
||||
if ($ext === 'pdf'
|
||||
&& str_contains(strtolower(Request::server('HTTP_USER_AGENT')), 'electron')) {
|
||||
return response()->download($file, $name, [], 'inline');
|
||||
}
|
||||
//
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user