Commit ce52cc8b authored by ronald's avatar ronald

Merge branch 'development' into 'master'

Update login password

See merge request !9
parents c878c8ae 84cbc21f
...@@ -27,6 +27,10 @@ chrome.extension.onMessage.addListener(function(request,sender,sendResponse){ ...@@ -27,6 +27,10 @@ chrome.extension.onMessage.addListener(function(request,sender,sendResponse){
} }
console.log("Current index : ", index); console.log("Current index : ", index);
console.log("Current noImages : " , noImages); console.log("Current noImages : " , noImages);
if(index >= skus.length-1) {
console.log("Last file was downloaded");
alert(noImages);
}
}); });
chrome.downloads.onDeterminingFilename.addListener(function(item, suggest) { chrome.downloads.onDeterminingFilename.addListener(function(item, suggest) {
......
...@@ -5,7 +5,7 @@ var logined = false; ...@@ -5,7 +5,7 @@ var logined = false;
if (link.match(/login/g)){ if (link.match(/login/g)){
window.onload = function() { window.onload = function() {
document.querySelector("#login_input_user_name").value="myra@documentonready.com"; document.querySelector("#login_input_user_name").value="myra@documentonready.com";
document.querySelector("#login_input_password").value="GUmyra12345"; document.querySelector("#login_input_password").value="GUMyra12345";
document.querySelector(".jss70").click(); document.querySelector(".jss70").click();
} }
//If logined, get the idArray and go to the first asset page //If logined, get the idArray and go to the first asset page
...@@ -88,6 +88,10 @@ if (link.match(/login/g)){ ...@@ -88,6 +88,10 @@ if (link.match(/login/g)){
chrome.runtime.sendMessage({noImage : "true", currentSku : currentSku}); chrome.runtime.sendMessage({noImage : "true", currentSku : currentSku});
return; return;
} }
else {
console.log("First List : ", downloadlist);
console.log("Downloading first list");
}
// To prevent file loss for duplicate images name in zip file, will download twice for one sku // To prevent file loss for duplicate images name in zip file, will download twice for one sku
// Duplicated files download at second file "sku(copy).zip" // Duplicated files download at second file "sku(copy).zip"
var nameList = []; var nameList = [];
......
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