modalDialogCustom.confirm(null,`Created a gist at ${data.html_url}. Would you like to open it in a new window?`,()=>{
if(!tokenAccess){
window.open(data.html_url,'_blank')
modalDialogCustom.alert('Remix requires an access token (which includes gists creation permission). Please go to the settings tab for more information.')
vardescription='Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. \n Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version='+queryParams.get().version+'&optimize='+queryParams.get().optimize+'&gist='
modalDialogCustom.alert('Remix requires an access token (which includes gists creation permission). Please go to the settings tab for more information.')
}else{
vardescription='Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. \n Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version='+queryParams.get().version+'&optimize='+queryParams.get().optimize+'&gist='
vargists=newGists({
token:tokenAccess
})
})
}else{
tooltip('Creating a new gist ...')
gists.create({
gists.create({
description:description,
description:description,
public:true,
public:true,
@ -311,13 +324,24 @@ 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()
})
})
}
}
functioncb(error,data){
if(error){
modalDialogCustom.alert('Failed to manage gist: '+error)
}else{
if(data.html_url){
modalDialogCustom.confirm(null,`The gist is at ${data.html_url}. Would you like to open it in a new window?`,()=>{