summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/components/window.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-09 08:13:34 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-09 08:13:34 +0900
commit60ef3e3563c95008bde52818a7d638d1d8ff9b19 (patch)
tree085539a945faa4fe4105f82f65e5d320ea542b03 /src/client/app/desktop/views/components/window.vue
parentClean up (diff)
downloadmisskey-60ef3e3563c95008bde52818a7d638d1d8ff9b19.tar.gz
misskey-60ef3e3563c95008bde52818a7d638d1d8ff9b19.tar.bz2
misskey-60ef3e3563c95008bde52818a7d638d1d8ff9b19.zip
Refactor & Clean up
Diffstat (limited to 'src/client/app/desktop/views/components/window.vue')
-rw-r--r--src/client/app/desktop/views/components/window.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/desktop/views/components/window.vue b/src/client/app/desktop/views/components/window.vue
index 75335f540b..3aaf2ba949 100644
--- a/src/client/app/desktop/views/components/window.vue
+++ b/src/client/app/desktop/views/components/window.vue
@@ -110,7 +110,7 @@ export default Vue.extend({
this.preventMount = true;
} else {
// ウィンドウをウィンドウシステムに登録
- (this as any).os.windows.add(this);
+ this.$root.os.windows.add(this);
}
},
@@ -133,7 +133,7 @@ export default Vue.extend({
destroyed() {
// ウィンドウをウィンドウシステムから削除
- (this as any).os.windows.remove(this);
+ this.$root.os.windows.remove(this);
window.removeEventListener('resize', this.onBrowserResize);
},
@@ -234,7 +234,7 @@ export default Vue.extend({
top() {
let z = 0;
- (this as any).os.windows.getAll().forEach(w => {
+ this.$root.os.windows.getAll().forEach(w => {
if (w == this) return;
const m = w.$refs.main;
const mz = Number(document.defaultView.getComputedStyle(m, null).zIndex);