MCPcopy Create free account
hub / github.com/chhoumann/quickadd / openUriCallback

Method openUriCallback

src/main.ts:419–423  ·  view source on GitHub ↗

Opens a callback URL with the result params appended. No-throw, no-recursion: * a failed window.open must never break the (already-completed) choice or fire * another callback.

(url: string, params: Record<string, string>)

Source from the content-addressed store, hash-verified

417 * a failed window.open must never break the (already-completed) choice or fire
418 * another callback. */
419 private openUriCallback(url: string, params: Record<string, string>): void {
420 withErrorHandling(() => {
421 window.open(buildCallbackUrl(url, params));
422 }, "QuickAdd URI: failed to open callback URL");
423 }
424
425 onunload() {
426 log.logMessage("Unloading QuickAdd");

Callers 4

onloadMethod · 0.95
fireUriSuccessMethod · 0.95
fireUriErrorMethod · 0.95
fireUriCancelMethod · 0.95

Calls 3

withErrorHandlingFunction · 0.90
buildCallbackUrlFunction · 0.90
openMethod · 0.45

Tested by

no test coverage detected