@ -13,9 +14,18 @@ module.exports = function (filesProviders) {
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 "'+key+'"? Click Ok to overwrite local file with file from cloud. Cancel will push your local file to the cloud.')){
console.log('Overwriting',key)
filesProviders['browser'].set(key,resp[key])
functionconfirmDialog(callback){
modalDialogCustom.confirm('','Overwrite "'+key+'"? Click Ok to overwrite local file with file from cloud. Cancel will push your local file to the cloud.',()=>{callback(true)},()=>{callback(false)})
modalDialogCustom.prompt(null,'To which other browser-solidity instance do you want to copy over all files?','https://ethereum.github.io/browser-solidity/',(target)=>{
modalDialogCustom.alert(yo`<span>Failed to publish metadata file to swarm, please check the Swarm gateways is available ( swarm-gateways.net ).<br />
${err}</span>`)
}else{
alert('Metadata published successfully. You\'l find the Swarm address in the Contract details.')
modalDialogCustom.alert(yo`<span>Metadata published successfully.<br />The Swarm address of the metadata file is available in the contract details.</span>`)