Skip to content

Commit 174cce5

Browse files
committed
Move fixpath into root component
1 parent 975a26f commit 174cce5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/App.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import BucketScreen from './components/screens/buckets/BucketScreen';
44
import SettingScreen from './components/screens/settings/SettingScreen';
55
import './App.css';
66

7+
const fixPath = window.require('fix-path');
8+
79
class App extends Component {
810
constructor(props) {
911
super(props);
@@ -12,6 +14,10 @@ class App extends Component {
1214
};
1315
}
1416

17+
componentWillMount() {
18+
fixPath(); // Seems to block UI render of components.
19+
}
20+
1521
handleNavigation = (selectedTab) => {
1622
this.setState({selectedTab});
1723
}

src/components/screens/buckets/BucketSelector.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Bucket from '../../../models/Bucket.js';
44
// import { PropagateLoader } from 'react-spinners';
55

66
const execAsync = window.require('async-child-process').execAsync;
7-
// const fixPath = window.require('fix-path');
87
const remote = window.require('electron').remote;
98

109
class BucketSelector extends Component {
@@ -31,7 +30,6 @@ class BucketSelector extends Component {
3130
}
3231

3332
getBuckets() {
34-
// fixPath(); // Seems to block UI render of components. Might be unnecessary
3533
return execAsync("aws s3 ls").then(results => {
3634
return this.parseBuckets(results.stdout);
3735
});

0 commit comments

Comments
 (0)