MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / copyUrl

Function copyUrl

client/src/templates/Challenges/codeally/show.tsx:250–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 }
249
250 function copyUrl() {
251 navigator.clipboard.writeText(coderoadTutorial ?? '').then(
252 () => {
253 createFlashMessage({
254 type: 'success',
255 message: FlashMessages.CourseUrlCopied
256 });
257 },
258 () => {
259 createFlashMessage({
260 type: 'danger',
261 message: FlashMessages.CourseUrlCopyError
262 });
263 }
264 );
265 }
266
267 const setups = [
268 {

Callers

nothing calls this directly

Calls 1

createFlashMessageFunction · 0.90

Tested by

no test coverage detected