Commit c2e066d0 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Rename .browser-solidity.json to .remix.config

parent 0ec2035b
'use strict'
var CONFIG_FILE = '.browser-solidity.json'
var CONFIG_FILE = '.remix.config'
function Config (storage) {
this.items = {}
......
......@@ -9,7 +9,7 @@ function Files (storage) {
this.exists = function (path) {
// NOTE: ignore the config file
if (path === '.browser-solidity.json') {
if (path === '.remix.config') {
return false
}
......@@ -18,7 +18,7 @@ function Files (storage) {
this.get = function (path) {
// NOTE: ignore the config file
if (path === '.browser-solidity.json') {
if (path === '.remix.config') {
return null
}
......@@ -27,7 +27,7 @@ function Files (storage) {
this.set = function (path, content) {
// NOTE: ignore the config file
if (path === '.browser-solidity.json') {
if (path === '.remix.config') {
return false
}
......@@ -94,7 +94,7 @@ function Files (storage) {
// add r/w files to the list
storage.keys().forEach(function (path) {
// NOTE: as a temporary measure do not show the config file
if (path !== '.browser-solidity.json') {
if (path !== '.remix.config') {
files[path] = false
}
})
......@@ -106,6 +106,11 @@ function Files (storage) {
return files
}
// rename .browser-solidity.json to .remix.config
if (this.exists('.browser-solidity.json')) {
this.rename('.browser-solidity.json', '.remix.config')
}
}
module.exports = Files
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment