mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 12:54:48 -04:00
Move ereader check to utility function
This commit is contained in:
parent
706fd4fea0
commit
e48ac5643a
2 changed files with 5 additions and 6 deletions
|
@ -54,4 +54,8 @@ class Template{
|
|||
|
||||
exit();
|
||||
}
|
||||
|
||||
public static function IsEreaderBrowser(): bool{
|
||||
return isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], "Kobo") !== false || strpos($_SERVER['HTTP_USER_AGENT'], "Kindle") !== false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue