Skip to content

Commit 185b076

Browse files
committed
client and server now dispatch is_client or is_server
1 parent c585dbf commit 185b076

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/js/views/controllers/Client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ class Client{
3737

3838
// Let's set the client class
3939

40-
$('#wrapper').classList = 'client';
41-
window.mainEditor.layout();
40+
this.store.dispatch({
41+
type: 'IS_CLIENT'
42+
});
4243

4344
this.isConnected = true;
4445

src/js/views/controllers/Server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ class Server {
4444

4545
// Let's set the admin class
4646

47-
$('#wrapper').classList = 'server';
48-
window.mainEditor.layout();
47+
this.store.dispatch({
48+
type: 'IS_SERVER'
49+
});
4950

5051
resolve();
5152

0 commit comments

Comments
 (0)