Merge pull request #905 from p-chan/add-screen-fallback

Fix runtime error when device is null
This commit is contained in:
Mike Cao 2022-01-12 20:37:34 -08:00 committed by GitHub
commit 2e1db5ba55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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);
}