pull/1/head
yann300 7 years ago
parent 2bb3f7082f
commit cd21299dbe
  1. 4
      src/app.js
  2. 4
      src/app/panels/file-panel.js

@ -12,7 +12,7 @@ var OffsetToLineColumnConverter = require('./lib/offsetToLineColumnConverter')
var QueryParams = require('./lib/query-params')
var GistHandler = require('./lib/gist-handler')
var helpers = require('./lib/helper')
var helper = require('./lib/helper')
var Storage = require('./storage')
var Browserfiles = require('./app/files/browser-files')
var chromeCloudStorageSync = require('./app/files/chromeCloudStorageSync')
@ -219,7 +219,7 @@ function run () {
// Add files received from remote instance (i.e. another browser-solidity)
function loadFiles (filesSet) {
for (var f in filesSet) {
filesProviders['browser'].set(helpers.createNonClashingName(f, filesProviders['browser']), filesSet[f].content)
filesProviders['browser'].set(helper.createNonClashingName(f, filesProviders['browser']), filesSet[f].content)
}
fileManager.switchFile()
}

@ -10,7 +10,7 @@ var modalDialog = require('../ui/modaldialog')
var modalDialogCustom = require('../ui/modal-dialog-custom')
var QueryParams = require('../../lib/query-params')
var queryParams = new QueryParams()
var helpers = require('../../lib/helper')
var helper = require('../../lib/helper')
var remix = require('ethereum-remix')
var styleGuide = remix.ui.styleGuide
@ -246,7 +246,7 @@ function filepanel (appAPI, filesProvider) {
}
function createNewFile () {
var newName = filesProvider['browser'].type + '/' + helpers.createNonClashingName('Untitled.sol', filesProvider['browser'])
var newName = filesProvider['browser'].type + '/' + helper.createNonClashingName('Untitled.sol', filesProvider['browser'])
if (!filesProvider['browser'].set(newName, '')) {
modalDialogCustom.alert('Failed to create file ' + newName)
} else {

Loading…
Cancel
Save