mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 23:36:17 -04:00
Lots of small improvements, websockets fallback
This commit is contained in:
parent
e5eab64c6b
commit
22be7c5cb9
35 changed files with 2672 additions and 916 deletions
|
@ -21,17 +21,25 @@
|
|||
}
|
||||
};
|
||||
|
||||
app.displayToast = function(msg) {
|
||||
var toast = Polymer.dom(document).querySelector('#toast');
|
||||
toast.text = msg;
|
||||
toast.show();
|
||||
};
|
||||
|
||||
// Listen for template bound event to know when bindings
|
||||
// have resolved and content has been stamped to the page
|
||||
app.addEventListener('dom-change', function() {
|
||||
console.log('Our app is ready to rock!');
|
||||
app.p2p = document.querySelector('connection-wrapper');
|
||||
});
|
||||
|
||||
// See https://github.com/Polymer/polymer/issues/1381
|
||||
window.addEventListener('WebComponentsReady', function() {
|
||||
// imports are loaded and elements have been registered
|
||||
app.p2p = document.querySelector('p2p-network');
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
})(document);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue