MCPcopy
hub / github.com/ampproject/amphtml / open

Method open

third_party/subscriptions-project/swg.js:7033–7038  ·  view source on GitHub ↗

* Start an activity in a separate window. The result will be delivered * to the `onResult` callback. * * The activity can be opened in two modes: "popup" and "redirect". This * depends on the `target` value, but also on the browser/environment. * * The allowed `target` values are `

(requestId, url, target, args, options, addDefaultArguments = false)

Source from the content-addressed store, hash-verified

7031 * @return {{targetWin: ?Window}}
7032 */
7033 open(requestId, url, target, args, options, addDefaultArguments = false) {
7034 if (addDefaultArguments) {
7035 args = this.addDefaultArguments(args);
7036 }
7037 return this.activityPorts_.open(requestId, url, target, args, options);
7038 }
7039
7040 /**
7041 * Registers the callback for the result of the activity opened with the

Callers

nothing calls this directly

Calls 2

addDefaultArgumentsMethod · 0.95
openMethod · 0.45

Tested by

no test coverage detected