summaryrefslogtreecommitdiff
path: root/src/web/app/init.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-11 12:08:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-11 12:08:43 +0900
commit92826c406a5109a054aadf473d078a10b1f4ecd7 (patch)
treeefdfc985b76a1bbb1566d6e088bcfa24e885d3d0 /src/web/app/init.ts
parentwip (diff)
downloadmisskey-92826c406a5109a054aadf473d078a10b1f4ecd7.tar.gz
misskey-92826c406a5109a054aadf473d078a10b1f4ecd7.tar.bz2
misskey-92826c406a5109a054aadf473d078a10b1f4ecd7.zip
wip
Diffstat (limited to 'src/web/app/init.ts')
-rw-r--r--src/web/app/init.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/web/app/init.ts b/src/web/app/init.ts
index 3ae2a8adcd..dfb1e96b8a 100644
--- a/src/web/app/init.ts
+++ b/src/web/app/init.ts
@@ -63,7 +63,7 @@ if (localStorage.getItem('should-refresh') == 'true') {
}
// MiOSを初期化してコールバックする
-export default (callback: (os: MiOS, launch: () => Vue) => void, sw = false) => {
+export default (callback: (launch: () => Vue) => void, sw = false) => {
const mios = new MiOS(sw);
mios.init(() => {
@@ -75,6 +75,9 @@ export default (callback: (os: MiOS, launch: () => Vue) => void, sw = false) =>
const launch = () => {
return new Vue({
+ data: {
+ os: mios
+ },
router: new VueRouter({
mode: 'history'
}),
@@ -83,7 +86,7 @@ export default (callback: (os: MiOS, launch: () => Vue) => void, sw = false) =>
};
try {
- callback(mios, launch);
+ callback(launch);
} catch (e) {
panic(e);
}