src: lint using putout

This commit is contained in:
coderaiser
2020-10-25 10:05:41 +02:00
parent 99b1a7a49b
commit 246d137c2c
7 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ const isNode = (typeof navigator === 'undefined') ? true : false;
const userAgent = (isNode) ? 'node' : navigator.userAgent;
const platform = (isNode) ? 'node' : navigator.platform;
export const isFirefox = !!~userAgent.indexOf('Firefox');
export const isFirefox = userAgent.includes('Firefox');
export const isSafari = /^((?!chrome|android).)*safari/i.test(userAgent);
// Find the users platform. We use this to interpret the meta key