if(confirm("Are you sure you want to publish all your files anonymously as a public gist on github.com?")){
if(confirm('Are you sure you want to publish all your files anonymously as a public gist on github.com?')){
varfiles=editor.packageFiles();
vardescription="Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. \n Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version="+queryParams.get().version+"&optimize="+queryParams.get().optimize+"&gist=";
vardescription='Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. \n Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version='+queryParams.get().version+'&optimize='+queryParams.get().optimize+'&gist=';
$.ajax({
url:'https://api.github.com/gists',
@ -121,7 +121,7 @@ var run = function() {
files:files
})
}).done(function(response){
if(response.html_url&&confirm("Created a gist at "+response.html_url+" Would you like to open it in a new window?")){
if(response.html_url&&confirm('Created a gist at '+response.html_url+' Would you like to open it in a new window?')){
window.open(response.html_url,'_blank');
}
});
@ -130,14 +130,14 @@ var run = function() {
$('#copyOver').click(function(){
vartarget=prompt(
"To which other browser-solidity instance do you want to copy over all files?",
"https://ethereum.github.io/browser-solidity/"
'To which other browser-solidity instance do you want to copy over all files?',
@ -13,24 +13,24 @@ function StorageHandler(updateFiles) {
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.")){
console.log("Overwriting",key);
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.')){