Commit d5f34486 authored by LianaHus's avatar LianaHus

cleanup

parent 26218361
...@@ -63,8 +63,6 @@ function fileExplorer (localRegistry, files, menuItems) { ...@@ -63,8 +63,6 @@ function fileExplorer (localRegistry, files, menuItems) {
fileManager: self._components.registry.get('filemanager').api fileManager: self._components.registry.get('filemanager').api
} }
self._components.registry.put(`fileexplorer${files.type}`, this)
// warn if file changed outside of Remix // warn if file changed outside of Remix
function remixdDialog () { function remixdDialog () {
return yo`<div>This file has been changed outside of Remix IDE.</div>` return yo`<div>This file has been changed outside of Remix IDE.</div>`
...@@ -316,11 +314,11 @@ fileExplorer.prototype.init = function () { ...@@ -316,11 +314,11 @@ fileExplorer.prototype.init = function () {
return this.container return this.container
} }
fileExplorer.prototype.publishToGist = function (fileProviderName) { fileExplorer.prototype.publishToGist = function () {
modalDialogCustom.confirm( modalDialogCustom.confirm(
null, null,
'Are you sure you want to publish all your files anonymously as a public gist on github.com?', 'Are you sure you want to publish all your files anonymously as a public gist on github.com?',
() => { this.toGist(fileProviderName) } () => { this.toGist() }
) )
} }
......
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