mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-16 07:20:59 +00:00
Update page.tsx
This commit is contained in:
@@ -402,6 +402,7 @@ export default function PluginConfigPage() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleCopyDebugInfo = (text: string, type: 'url' | 'key') => {
|
const handleCopyDebugInfo = (text: string, type: 'url' | 'key') => {
|
||||||
|
try {
|
||||||
navigator.clipboard.writeText(text);
|
navigator.clipboard.writeText(text);
|
||||||
if (type === 'url') {
|
if (type === 'url') {
|
||||||
setCopiedDebugUrl(true);
|
setCopiedDebugUrl(true);
|
||||||
@@ -410,6 +411,9 @@ export default function PluginConfigPage() {
|
|||||||
setCopiedDebugKey(true);
|
setCopiedDebugKey(true);
|
||||||
setTimeout(() => setCopiedDebugKey(false), 2000);
|
setTimeout(() => setCopiedDebugKey(false), 2000);
|
||||||
}
|
}
|
||||||
|
} catch {
|
||||||
|
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderPluginDisabledState = () => (
|
const renderPluginDisabledState = () => (
|
||||||
|
|||||||
Reference in New Issue
Block a user