diff --git a/src/config.js b/src/config.js index b4380662d5..b42959fa43 100644 --- a/src/config.js +++ b/src/config.js @@ -33,7 +33,13 @@ function Config (storage) { this.ensureStorageUpdated = function (key) { 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] } }