don't prepend browser/ if known provider

pull/3094/head
yann300 7 years ago
parent 657f34180e
commit 39454fbeff
  1. 8
      src/config.js

@ -33,7 +33,13 @@ function Config (storage) {
this.ensureStorageUpdated = function (key) { this.ensureStorageUpdated = function (key) {
if (key === 'currentFile') { if (key === 'currentFile') {
if (this.items[key] && this.items[key] !== '' && this.items[key].indexOf('browser/') !== 0 && this.items[key].indexOf('localhost/') !== 0) { if (this.items[key] && this.items[key] !== '' &&
this.items[key].indexOf('browser/') !== 0 &&
this.items[key].indexOf('localhost/') !== 0 &&
this.items[key].indexOf('swarm/') !== 0 &&
this.items[key].indexOf('gist/') !== 0 &&
this.items[key].indexOf('github/') !== 0 &&
this.items[key].indexOf('ipfs/') !== 0) {
this.items[key] = 'browser/' + this.items[key] this.items[key] = 'browser/' + this.items[key]
} }
} }

Loading…
Cancel
Save