Search...
formFactor
Returns the form factor of the device used to make the router request.
Description
Returns either desktop
or mobile
.
Type:
stringRead Only
Was this helpful?
Get the form factor of the device used to make the router request
Copy Code
1export function myRouter_Router(request) {23 let formFactor = request.formFactor; // "desktop"45}