Skip to content

Commit

Permalink
SysEx permission fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Feb 13, 2019
1 parent 66b897e commit 95f30b0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ by running `npm remove midi-test --save-dev`.
##### CDN

<script src="https://cdn.jsdelivr.net/npm/jzz"></script> // the latest version, or
<script src="https://cdn.jsdelivr.net/npm/jzz@0.6.6"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@0.6.7"></script> // any particular version
//...

##### CommonJS (Browserify and Node.js command line applications)
Expand Down
6 changes: 3 additions & 3 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
})(this, function() {

var _scope = typeof window === 'undefined' ? global : window;
var _version = '0.6.6';
var _version = '0.6.7';
var i, j, k, m, n;

var _time = Date.now || function () { return new Date().getTime(); };
Expand Down Expand Up @@ -2560,7 +2560,7 @@
return this;
};

JZZ.requestMIDIAccess = function() {
JZZ.requestMIDIAccess = function(opt) {
var wma;
var counter;
function ready() { _wma = wma; for (var i = 0; i < _resolves.length; i++) _resolves[i](_wma); }
Expand All @@ -2571,7 +2571,7 @@
_resolves.push(resolve);
if (_resolves.length == 1) {
wma = new MIDIAccess();
JZZ().or(ready).and(function() {
JZZ(opt).or(ready).and(function() {
var info = this.info();
counter = info.inputs.length + info.outputs.length;
if (!counter) { ready(); return; }
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "0.6.6",
"version": "0.6.7",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand Down

0 comments on commit 95f30b0

Please sign in to comment.