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

Method fireUriSuccess

src/main.ts:395–402  ·  view source on GitHub ↗
(targets: CallbackTargets, file?: TFile)

Source from the content-addressed store, hash-verified

393 }
394
395 private fireUriSuccess(targets: CallbackTargets, file?: TFile): void {
396 const params: Record<string, string> = { status: "success" };
397 if (file) {
398 params.path = file.path;
399 params.url = buildObsidianOpenUrl(this.app.vault.getName(), file.path);
400 }
401 if (targets.success) this.openUriCallback(targets.success, params);
402 }
403
404 private fireUriError(targets: CallbackTargets, errorCode: string): void {
405 if (targets.error) {

Callers 1

onloadMethod · 0.95

Calls 2

openUriCallbackMethod · 0.95
buildObsidianOpenUrlFunction · 0.90

Tested by

no test coverage detected