Properly check if a url match is a project / repository
This commit is contained in:
@@ -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 />);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user