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) {
2
3 let formFactor = request.formFactor; // "desktop"
4
5}