Refactor & Clean up

This commit is contained in:
syuilo
2018-11-09 08:13:34 +09:00
parent ba845f5218
commit 60ef3e3563
154 changed files with 438 additions and 481 deletions

View File

@ -58,7 +58,7 @@ export default Vue.extend({
},
mounted() {
if (this.$store.getters.isSignedIn) {
this.connection = (this as any).os.stream.useSharedConnection('main');
this.connection = this.$root.stream.useSharedConnection('main');
this.connection.on('reversiInvited', this.onReversiInvited);
this.connection.on('reversi_no_invites', this.onReversiNoInvites);
@ -79,11 +79,11 @@ export default Vue.extend({
},
messaging() {
(this as any).os.new(MkMessagingWindow);
this.$root.new(MkMessagingWindow);
},
game() {
(this as any).os.new(MkGameWindow);
this.$root.new(MkGameWindow);
},
goToTop() {