Agent utilisateur simple analyse js

const browser =
    agent.includes('Firefox/') ? 'firefox'
    : agent.includes('Edg/') ? 'edge'
    : agent.includes('Brave') ? 'brave'
    : agent.includes('Chrome/') ? 'chrome'
    : agent.includes('Safari/') ? 'safari'
    : agent.includes('OPR/') ? 'opera'
    : 'other';
Aryqs Ipsum