OLD | NEW |
(Empty) | |
| 1 <h1>externally_connectable</h1> |
| 2 |
| 3 <p> |
| 4 The <code>externally_connectable</code> manifest property declares which extensi
ons, apps, and web pages can connect to your extension via <a href="../runtime.h
tml#method-connect">runtime.connect</a> and <a href="../runtime.html#method-send
Message">runtime.sendMessage</a>. |
| 5 </p> |
| 6 |
| 7 <h2 id="manifest">Sample manifest.json</h2> |
| 8 <pre> |
| 9 { |
| 10 "name": "My externally connectable {{platform}}", |
| 11 "externally_connectable": { |
| 12 // Extension and app IDs: |
| 13 "ids": [ |
| 14 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", |
| 15 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", |
| 16 ... |
| 17 ], |
| 18 // Alternatively, for all extensions and apps: |
| 19 "ids": ["*"], |
| 20 // Match patterns for <em>web pages</em>, not content scripts: |
| 21 "matches": [ |
| 22 "https://*.google.com", |
| 23 "*://*.chromium.org", |
| 24 ... |
| 25 ] |
| 26 }, |
| 27 ... |
| 28 } |
| 29 </pre> |
| 30 |
| 31 <h2 id="reference">Reference</h2> |
| 32 <p class="api_reference"> |
| 33 {{+partials.type @:apis.manifestTypes.byName.ExternallyConnectable}} |
| 34 </p> |
OLD | NEW |