(type, opt_object)
| 9 | * @deprecated Use iframe-messaging-client.js |
| 10 | */ |
| 11 | export function nonSensitiveDataPostMessage(type, opt_object) { |
| 12 | if (window.parent == window) { |
| 13 | return; // Nothing to do. |
| 14 | } |
| 15 | const object = opt_object || /** @type {JsonObject} */ ({}); |
| 16 | object['type'] = type; |
| 17 | object['sentinel'] = window.context.sentinel; |
| 18 | window.parent./*OK*/ postMessage(object, window.context.location.origin); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Message event listeners. |
no test coverage detected