From ba6a0b9268f37de7a67c01591d63e34f17c92fda Mon Sep 17 00:00:00 2001 From: Eshin Kunishima Date: Wed, 23 Sep 2015 23:00:04 +0900 Subject: [PATCH] Fix url parsing bug --- popup_script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup_script.js b/popup_script.js index 43304de..6d52c1a 100644 --- a/popup_script.js +++ b/popup_script.js @@ -286,7 +286,7 @@ var urlParts = tab.url.split("/"); // Set - if( urlParts[5] === "sets") + if( ["sets", "albums"].indexOf(urlParts[5]) > -1 ) { $("#setId").attr("value", urlParts[6]); $("#setOk").click();