snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit f2c49dee1b9650c6d664940106f0f1f6a3f03133
parent 0e008a5f31985d251722f89c693aed878d04d30f
Author: Robin Linus <robin_woll@capira.de>
Date:   Sat,  2 Jan 2016 14:24:22 +0100

Integrate Sound Notifications

Diffstat:
Mapp/elements/file-sharing/file-receiver.html | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app/elements/file-sharing/file-receiver.html b/app/elements/file-sharing/file-receiver.html @@ -4,6 +4,7 @@ <link rel="import" href="../../bower_components/neon-animation/animations/fade-out-animation.html"> <link rel="import" href="../../bower_components/iron-pages/iron-pages.html"> <link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html"> +<link rel="import" href="../sound-notification/sound-notification-behavior.html"> <dom-module id="file-receiver"> <template> <style> @@ -13,8 +14,9 @@ #dialog, #download { - width: 300px; + width: 324px; z-index: 101; + margin: 16px; } .filename { @@ -46,11 +48,13 @@ (function() { Polymer({ is: 'file-receiver', + behaviors: [Chat.SoundNotificationBehavior], attached: function() { this.async(function() { app.conn.addEventListener('file-offer', function(e) { this.file = e.detail; this.$.dialog.open(); + this.playSound(); }.bind(this), false); app.conn.addEventListener('file-received', function(e) { this._fileReceived(e.detail);