consttoken=globalRegistry.get('config').api.get('settings/gist-access-token')// TODO replace with the plugin call above https://github.com/ethereum/remix-ide/issues/2288
consttoken=globalRegistry.get('config').api.get('settings/gist-access-token')// TODO replace with the plugin call above https://github.com/ethereum/remix-ide/issues/2288
param+=token?'access_token='+token:''
this.urlResolver=newRemixURLResolver(token)
constregex=path.match(/blob\/([^/]+)\/(.*)/)
this.previouslyHandled={}// cache import so we don't make the request at each compilation.
if(regex){
// if we have /blob/master/+path we extract the branch name "master" and add it as a parameter to the github api