MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / initialiseSharing

Function initialiseSharing

static/sharing.ts:522–530  ·  view source on GitHub ↗
(layout: GoldenLayout, isEmbedded: boolean)

Source from the content-addressed store, hash-verified

520
521// Initialize sharing functionality based on whether we're in embedded mode or not
522export function initialiseSharing(layout: GoldenLayout, isEmbedded: boolean): void {
523 if (isEmbedded) {
524 // Just create the base class for state tracking and link updates
525 new SharingBase(layout);
526 } else {
527 // Create full Sharing with all features
528 new Sharing(layout);
529 }
530}

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected