MCPcopy
hub / github.com/cockpit-project/cockpit / Location

Interface Location

pkg/shell/util.tsx:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9import { Machine } from "./machines/machines";
10
11export interface Location {
12 host: string;
13 path: string;
14 hash: string;
15}
16
17export function encode_location(location: Partial<Location>): string {
18 const shell_embedded = window.location.pathname.indexOf(".html") !== -1;

Callers

nothing calls this directly

Implementers 1

Locationpkg/lib/cockpit/_internal/location.ts

Calls

no outgoing calls

Tested by

no test coverage detected