From 889e46b29196e9c9728ebfa8db939e96d7cc6a22 Mon Sep 17 00:00:00 2001 From: Hexagon Date: Wed, 30 Dec 2015 00:38:05 +0100 Subject: [PATCH] Fixes --- .travis.yml | 4 ++++ README.md | 3 +++ package.json | 2 +- public/index.html | 11 ++++------- public/js/cryptalk_modules/audio.js | 4 ++-- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 982fee7..982eb51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ language: node_js node_js: - "0.10" + - "0.11" + - "0.12" + - "4.0" + - "4.1" \ No newline at end of file diff --git a/README.md b/README.md index 68f6a5e..2290f08 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@ ![cryptalk](/docs/screenshot.png) ![Build](https://travis-ci.org/Hexagon/cryptalk.svg) +[![npm version](https://badge.fury.io/js/cryptalk.svg)](https://badge.fury.io/js/cryptalk) +[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md) +Latest release is 1.0.0, available at npm using ```npm install telldus``` Cyptalk is a HTML5/Node.js based, client side (E2EE) encrypted instant chat Features diff --git a/package.json b/package.json index 89c3cab..59f36e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "cryptalk", - "version" : "1.0.5", + "version" : "1.0.6", "description" : "Encrypted HTML5/Node.JS instant chat", "main" : "server.js", "subdomain": "cryptalk", diff --git a/public/index.html b/public/index.html index f556298..cd6970d 100644 --- a/public/index.html +++ b/public/index.html @@ -1,15 +1,12 @@ - - Cryptalk - + - - + + + diff --git a/public/js/cryptalk_modules/audio.js b/public/js/cryptalk_modules/audio.js index 41ebeab..365c3b0 100644 --- a/public/js/cryptalk_modules/audio.js +++ b/public/js/cryptalk_modules/audio.js @@ -41,8 +41,8 @@ define(['queue','castrato','templates'], function (queue,mediator,templates) { o.connect(g); g.gain.value = 0.25; g.connect(ac.destination); - queue.add_function_delayed(start,function() { o.noteOn(0); }); - queue.add_function_delayed(start+duration,function() { o.noteOff(0); }); + queue.add_function_delayed(start,function() { o.noteOn && o.noteOn(0) || o.start(0); }); + queue.add_function_delayed(start+duration,function() { o.noteOff && o.noteOff(0) || o.stop(0); }); // Iterate, or start playing i++;