mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<link rel="author" title="He Yue" href="mailto:yue.he@intel.com">
|
||||
<link rel="help" href="http://w3c.github.io/presentation-api/#interface-presentationconnectionlist">
|
||||
<script>
|
||||
var addConnection = function(connection) {
|
||||
connection.onconnected = function () {
|
||||
this.onmessage = function (evt) {
|
||||
this.send(evt.data);
|
||||
};
|
||||
};
|
||||
navigator.receiver.connectionList
|
||||
.then(function(list) {
|
||||
list.onconnectionavailable = function(connections) {
|
||||
addConnection(connections[connections.length - 1]);
|
||||
};
|
||||
list.connections.map(function(connection) {
|
||||
addConnection(connection);
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue