formFactor


formFactorstringRead-only

Returns the form factor of the device used to make the router request.

Returns either desktop or mobile.

Get the form factor of the device used to make the router request
JavaScript
export function myRouter_Router(request) { let formFactor = request.formFactor; // "desktop" }
Did this help?