Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
omniagents / omniagents / backends / web / ui / src / main.tsx
Size: Mime:
import React from 'react'
import { createRoot } from 'react-dom/client'
import { App } from './App'
import './styles/index.css'

try {
  const theme = new URL(window.location.href).searchParams.get('theme')
  if (theme) document.documentElement.setAttribute('data-theme', theme)
} catch {}

const root = createRoot(document.getElementById('root')!)
root.render(<App />)