Properly check if a url match is a project / repository

This commit is contained in:
Rohid
2024-08-26 16:11:15 +06:00
parent 410ccc0f78
commit 3d1038de01
17 changed files with 242 additions and 77 deletions

View File

@@ -3,10 +3,14 @@ import { createRoot } from 'react-dom/client';
import Options from './components/Options';
/* This is a fix for Bootstrap requiring jQuery */
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
global.jQuery = require('jquery');
require('bootstrap');
const container = document.getElementById('wakatime-options');
const root = createRoot(container!);
root.render(<Options />);
if (container) {
const root = createRoot(container);
root.render(<Options />);
}