Set url resolver if token is found

pull/1453/head^2
ioedeveloper 3 years ago committed by yann300
parent 8606177711
commit 03cf7407dc
  1. 8
      libs/remix-core-plugin/src/lib/compiler-content-imports.ts

@ -21,14 +21,14 @@ export class CompilerImports extends Plugin {
}
async setToken () {
const protocol = typeof window !== 'undefined' && window.location.protocol
let token
try {
token = await this.call('settings', 'get', 'settings/gist-access-token')
const protocol = typeof window !== 'undefined' && window.location.protocol
const token = await this.call('settings', 'get', 'settings/gist-access-token')
this.urlResolver.setGistToken(token, protocol)
} catch (error) {
console.log(error)
}
this.urlResolver.setGistToken(token, protocol)
}
isRelativeImport (url) {

Loading…
Cancel
Save