@ -13,7 +14,13 @@ module.exports = function (filesProviders) {
functioncheck(key){
functioncheck(key){
chrome.storage.sync.get(key,function(resp){
chrome.storage.sync.get(key,function(resp){
console.log('comparing to cloud',key,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.')){
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)})
@ -339,18 +340,18 @@ function filepanel (appAPI, filesProvider) {
}
}
})
})
}
}
modalDialogCustom.confirm(null,`Are you very sure you want to publish all your files anonymously as a public gist on github.com?`,()=>{
toGist()
})
}
}
// ------------------ copy files --------------
// ------------------ copy files --------------
functioncopyFiles(){
functioncopyFiles(){
vartarget=prompt(
modalDialogCustom.prompt(null,'To which other browser-solidity instance do you want to copy over all files?','https://ethereum.github.io/browser-solidity/',(target)=>{
'To which other browser-solidity instance do you want to copy over all files?',