Revise utilities (#28)
* Overhaul of config-editor * Update default card header * Update config-editor.tsx * Update config-editor.tsx * Update config-editor.tsx * Revert "Merge branch 'patch5-temp' into patch-5" This reverts commit538eab6ac6, reversing changes made tob0538f6e3c. * Update config-editor.tsx * Revert "Update config-editor.tsx" This reverts commit68dc70f216. * Update utilities.module.scss * Revert "Update utilities.module.scss" This reverts commitd9d14756d6. * Update dump-viewer.tsx
This commit is contained in:
1 parent
64f38f1b69
commit
b582b92414
2 files changed
+46
-50
No files matched your search
@@ -16,6 +16,8 @@ const DumpViewerPage: React.FC = () => {
|
||||
|
||||
const pluginPopoverRef = useRef<any>(null);
|
||||
|
||||
const urlReg = /^(https?:\/\/)?dump\.geysermc\.org/;
|
||||
|
||||
useEffect(() => {
|
||||
const handleClickOutside = (event) => setActivePlugin({});
|
||||
document.addEventListener("mousedown", handleClickOutside);
|
||||
@@ -44,7 +46,7 @@ const DumpViewerPage: React.FC = () => {
|
||||
}
|
||||
let id = dumpId;
|
||||
|
||||
if (dumpId.startsWith('https://dump.geysermc.org/')) {
|
||||
if (dumpId.match(urlReg)) {
|
||||
id = dumpId.split('/').pop();
|
||||
}
|
||||
setDumpId(id);
|
||||
|
||||
Reference in new issue
Block a user