fixes standart errors

pull/3094/head
LianaHus 6 years ago
parent 350fc28336
commit 0a4d5fb155
  1. 11
      src/app/ui/landing-page/landing-page.js

@ -5,7 +5,6 @@ let CompilerImport = require('../../compiler/compiler-imports')
var modalDialogCustom = require('../modal-dialog-custom')
var tooltip = require('../tooltip')
let css = csjs`
.sectionContainer {
display : flex;
@ -43,7 +42,6 @@ let css = csjs`
import { defaultWorkspaces } from './workspace'
import { ApiFactory } from 'remix-plugin'
import Section from './section'
import { ENGINE_METHOD_ALL } from 'constants';
export class LandingPage extends ApiFactory {
@ -59,8 +57,9 @@ export class LandingPage extends ApiFactory {
target,
(loadingMsg) => { tooltip(loadingMsg) },
(error, content, cleanUrl, type, url) => {
if (error) { modalDialogCustom.alert(error) }
else {
if (error) {
modalDialogCustom.alert(error)
} else {
if (fileProviders[type]) {
fileProviders[type].addReadOnly(cleanUrl, content, url)
}
@ -115,7 +114,6 @@ export class LandingPage extends ApiFactory {
appManager.ensureActivated('remixd')
}
}
]
var actionsHelp = [
@ -152,9 +150,6 @@ export class LandingPage extends ApiFactory {
}
})
// var sectionWorkspaceMain = new Section('Workspaces', sectionsWorkspacesMain)
// this.sections.push(sectionWorkspaceMain)
this.sections.push(sectionStart)
this.sections.push(sectionHelp)
}

Loading…
Cancel
Save