From 00b6ce9d492d47008f6569744cb8e031c9d04468 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 1 Aug 2015 23:59:17 +0300 Subject: [PATCH] Fix condition in player.js --- player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player.js b/player.js index 0b71701..0941012 100644 --- a/player.js +++ b/player.js @@ -39,7 +39,7 @@ function play_random () { } function handle_hash(){ - if(!hash_to_id[location.hash] || inhibit_handle_hash) + if(!hash_to_id.hasOwnProperty(location.hash) || inhibit_handle_hash) return; load_song(hash_to_id[location.hash]); start.innerHTML = "Next"; -- 2.30.2