From cfe240aaa6d8f2e5706df08a8e3333d5eeeec63a Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 28 Feb 2018 00:30:36 +0900 Subject: [PATCH] oops --- src/web/app/dev/views/apps.vue | 15 ++++++++++++++- src/web/app/init.ts | 4 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/web/app/dev/views/apps.vue b/src/web/app/dev/views/apps.vue index e8adbea2d..42b4abc9b 100644 --- a/src/web/app/dev/views/apps.vue +++ b/src/web/app/dev/views/apps.vue @@ -20,5 +20,18 @@ diff --git a/src/web/app/init.ts b/src/web/app/init.ts index 2e90d62d7..f9855fd5c 100644 --- a/src/web/app/init.ts +++ b/src/web/app/init.ts @@ -84,8 +84,8 @@ export default (callback: (launch: (api?: (os: MiOS) => API) => [Vue, MiOS]) => // アプリ基底要素マウント document.body.innerHTML = '
'; - const launch = (api: (os: MiOS) => API) => { - os.apis = api(os); + const launch = (api?: (os: MiOS) => API) => { + os.apis = api ? api(os) : null; Vue.mixin({ data() {