hasRuntimeModel function domain exported

Last updated: 2026-02-24T19:46:21.733Z

Metrics

LOC: 4 Complexity: 1 Params: 0

Signature

hasRuntimeModel(): : Promise<boolean>

Summary

Returns true if a runtime-trained model exists in storage.

Source Code

export async function hasRuntimeModel(): Promise<boolean> {
  const result = await chrome.storage.local.get(RUNTIME_MODEL_KEY);
  return !!result[RUNTIME_MODEL_KEY];
}

Dependencies (Outgoing)

graph LR hasRuntimeModel["hasRuntimeModel"] style hasRuntimeModel fill:#dbeafe,stroke:#2563eb,stroke-width:2px click hasRuntimeModel "f159266e663b86e4.html"
TargetType
RUNTIME_MODEL_KEY dynamic_call

Impact (Incoming)

graph LR hasRuntimeModel["hasRuntimeModel"] handle["handle"] handle -->|uses| hasRuntimeModel style hasRuntimeModel fill:#dbeafe,stroke:#2563eb,stroke-width:2px click hasRuntimeModel "f159266e663b86e4.html" click handle "4ec56f844308ba0c.html"
SourceType
handle uses