Commit 11518043 authored by ronald's avatar ronald

enclose all if clause in brackets

parent 4fb4507a
......@@ -69,8 +69,9 @@ if (link.match(/login/g)){
return;
}
//If images doesnt have sku, unselect
if(!a.querySelector(".name").innerText.match(currentSku))
if(!a.querySelector(".name").innerText.match(currentSku)) {
a.click();
}
}
});
downloadlist = document.querySelectorAll(".panel-inner .is-checked");
......@@ -113,8 +114,9 @@ if (link.match(/login/g)){
});
document.querySelector("#assets_btn_download_asset").click();
setTimeout(function(){
if(index+2 != a.length)
window.open("https://digitallibrary-external.fastretailing.com/asset?t=datacategory%2Fasset&w="+ a[index+2] + "&r=north");
if(index+2 != a.length) {
window.open("https://digitallibrary-external.fastretailing.com/asset?t=datacategory%2Fasset&w="+ a[index+2] + "&r=north");
}
},5000);
},5000);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment