create first working communication
This commit is contained in:
@@ -12,7 +12,7 @@ class GridField extends React.Component {
|
||||
lastClickedBlue: false,
|
||||
bombTargetArea: null,
|
||||
icons: {
|
||||
root: 'bundles/mineseeker/images/',
|
||||
root: '/bundles/mineseeker/images/',
|
||||
water: {
|
||||
1: 'bg-wave-1-outbg.png',
|
||||
2: 'bg-wave-1-outbg.png',
|
||||
@@ -35,6 +35,8 @@ class GridField extends React.Component {
|
||||
componentWillMount() {
|
||||
var wave = Math.floor(Math.random() * 3) + 1;
|
||||
|
||||
console.log('mounted');
|
||||
|
||||
this.setState({
|
||||
currentImage: this.state.icons.root + this.state.icons.water[wave]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user