From 771a7bdb8f043a03ba6c44eabb5302a9252d6bae Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Fri, 7 Nov 2014 16:19:52 -0800 Subject: [PATCH] Fix canceling file location dialog Fixes issue #6 --- winamp.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/winamp.js b/winamp.js index 10c0fe0f..336b6df6 100755 --- a/winamp.js +++ b/winamp.js @@ -213,7 +213,9 @@ function Winamp () { this.nodes.fileInput.onchange = function(e){ var file = e.target.files[0]; - self.startFileViaReference(file); + if(file) { + self.startFileViaReference(file); + } } this.nodes.volume.onmousedown = function() {