You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puffin is a popular browser for mobile. I have hacked part of the code to read its user agent string. Puffin FAQ (https://www.puffinbrowser.com/faq/ gives format of user agent at bottom of the page).
Not sure about whether the order makes sense or whether there are broader concerns to worry about.
if(/puffin/i.test(ua)){varpuffinMatch=getFirstMatch(/(?:puffin)[\/](\d+(\.\d+)?(\.\d+)?..)/i);varpuffinLength=puffinMatch.length;result={name: 'Puffin',puffin: t,version: puffinMatch.substring(0,puffinLength-2),puffinDevice: puffinMatch.substring(puffinLength-2)}varfirstPuffinCharacter=result.puffinDevice.substring(0,1);varsecondPuffinCharacter=result.puffinDevice.substring(1);if(firstPuffinCharacter=='A'){result.android=t;result.mobile=t;}elseif(firstPuffinCharacter=='I'){result.ios=t;result.mobile=t;}else{alert("Puffin may have changed its user agent string format - submit feedback at top right");}if(secondPuffinCharacter=='T'){result.tablet=t;}elseif(secondPuffinCharacter!='P'){alert("Puffin may have changed its user agent string format - submit feedback at top right");}}
The text was updated successfully, but these errors were encountered:
Puffin is a popular browser for mobile. I have hacked part of the code to read its user agent string. Puffin FAQ (https://www.puffinbrowser.com/faq/ gives format of user agent at bottom of the page).
Not sure about whether the order makes sense or whether there are broader concerns to worry about.
The text was updated successfully, but these errors were encountered: