Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Adjust desktop/mobile categorizing
Browse files Browse the repository at this point in the history
  • Loading branch information
arkon committed Jul 8, 2023
1 parent 23a55c5 commit b001a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const document = await request.text();

const $ = cheerio.load(document);

const desktopRegex = new RegExp('^Mozilla\\/5\\.0 \\((Windows|Linux|Macintosh).*$');
const mobileRegex = new RegExp('^Mozilla\\/5\\.0 \\((iPhone|iPad|Android).*$');
const desktopRegex = new RegExp('^Mozilla\\/5\\.0 \\((Windows NT 1|Macintosh|X11).*$');
const mobileRegex = new RegExp('^Mozilla\\/5\\.0 \\((iPhone|iPad|Android|Linux; Android).*$');

const desktopUserAgents = [];
const mobileUserAgents = [];
Expand Down

0 comments on commit b001a24

Please sign in to comment.