mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Merge pull request #905 from p-chan/add-screen-fallback
Fix runtime error when device is null
This commit is contained in:
commit
2e1db5ba55
2 changed files with 4 additions and 2 deletions
|
|
@ -9,6 +9,8 @@ import { createToken } from 'lib/crypto';
|
|||
export default async (req, res) => {
|
||||
await useCors(req, res);
|
||||
|
||||
console.log('hi!');
|
||||
|
||||
if (isbot(req.headers['user-agent'])) {
|
||||
return ok(res);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue