fix: reduce macOS popup compositing cost
This commit is contained in:
@@ -10,6 +10,11 @@ import './styles/globals.css';
|
||||
import 'katex/dist/katex.min.css';
|
||||
import { initializeDefaultTransports } from './lib/api-client';
|
||||
|
||||
const platform = window.electron?.platform;
|
||||
if (platform) {
|
||||
document.documentElement.dataset.platform = platform;
|
||||
}
|
||||
|
||||
initializeDefaultTransports();
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
|
||||
Reference in New Issue
Block a user