From 0617a8ed5709972df2d17c6053a9173fd2da469a Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Sun, 24 Nov 2024 15:12:23 -0500
Subject: Fix icon sorting and refactor getBrowser

---
 extension/src/main.tsx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'extension/src/main.tsx')

diff --git a/extension/src/main.tsx b/extension/src/main.tsx
index 40cc4f4..2505023 100644
--- a/extension/src/main.tsx
+++ b/extension/src/main.tsx
@@ -3,11 +3,7 @@ import './index.css'
 import Body from "./components/Body.tsx";
 
 export function getBrowser() {
-    if (typeof browser === "undefined") {
-        return chrome;
-    } else {
-        return browser;
-    }
+    return typeof browser === "undefined" ? chrome : browser;
 }
 //
 // getBrowser().runtime.onMessage.addListener((message) => {
-- 
cgit v1.2.3

