MCPcopy Create free account
hub / github.com/WICG/webpackage / setPrimaryURL

Method setPrimaryURL

js/bundle/src/encoder.ts:144–151  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

142 }
143
144 setPrimaryURL(url: string): BundleBuilder {
145 if (this.primaryURL !== null) {
146 throw new Error('Primary URL is already set');
147 }
148 validateExchangeURL(url);
149 this.primaryURL = url;
150 return this.bundleBuilder;
151 }
152
153 setManifestURL(url: string): BundleBuilder {
154 validateExchangeURL(url);

Callers

nothing calls this directly

Calls 2

validateExchangeURLFunction · 0.85
addSectionMethod · 0.80

Tested by

no test coverage detected