if(typeofresp[key]!='undefined'&&obj[key]!==resp[key]&&confirm("Overwrite '"+fileNameFromKey(key)+"'? Click Ok to overwrite local file with file from cloud. Cancel will push your local file to the cloud.")){
console.log("Overwriting",key);
localStorage.setItem(key,resp[key]);
functioncheck(key){
chrome.storage.sync.get(key,function(resp){
console.log('comparing to cloud',key,resp);
if(typeofresp[key]!=='undefined'&&obj[key]!==resp[key]&&confirm('Overwrite "'+fileNameFromKey(key)+'"? Click Ok to overwrite local file with file from cloud. Cancel will push your local file to the cloud.')){