From c6dde10e4e713489b67bbeb3a2e345150012323e Mon Sep 17 00:00:00 2001
From: sowgro <tpoke.ferrari@gmail.com>
Date: Wed, 6 Nov 2024 18:08:30 -0500
Subject: Finish implementing setting system

---
 extension/src/main.tsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

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

diff --git a/extension/src/main.tsx b/extension/src/main.tsx
index 5e6503a..4776db3 100644
--- a/extension/src/main.tsx
+++ b/extension/src/main.tsx
@@ -2,9 +2,12 @@ import { createRoot } from 'react-dom/client'
 import './index.css'
 import Body from "./Body.tsx";
 
-// @ts-ignore
-if (typeof browser === "undefined") {
-    var browser = chrome;
+export function getBrowser() {
+    if (typeof browser === "undefined") {
+        return chrome;
+    } else {
+        return browser;
+    }
 }
 
 createRoot(document.body).render(<Body/>)
-- 
cgit v1.2.3

