MCPcopy Create free account
hub / github.com/error311/FileRise / insertTipPrompt

Function insertTipPrompt

public/js/aiChat.js:522–529  ·  view source on GitHub ↗
(prompt)

Source from the content-addressed store, hash-verified

520 let lastRecipeDraft = null;
521
522 const insertTipPrompt = (prompt) => {
523 const text = String(prompt || '').trim();
524 if (!text || !inputEl) return;
525 inputEl.value = text;
526 inputEl.focus();
527 inputEl.setSelectionRange(text.length, text.length);
528 showToast('Prompt inserted');
529 };
530
531 const renderTips = () => {
532 if (!tipsBodyEl) return;

Callers 1

renderTipsFunction · 0.85

Calls 1

showToastFunction · 0.70

Tested by

no test coverage detected