From 53fbe0b0e2a2ab9f052730ae0b000804fced18f5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Nov 2017 06:05:14 +0900 Subject: [PATCH] Fix bug --- webpack/module/rules/consts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack/module/rules/consts.ts b/webpack/module/rules/consts.ts index 42235d22e0..7f66106213 100644 --- a/webpack/module/rules/consts.ts +++ b/webpack/module/rules/consts.ts @@ -12,7 +12,7 @@ export default lang => { // 置換の誤爆を防ぐため文字数の多い順に並べてください const consts = { _RECAPTCHA_SITEKEY_: JSON.stringify(config.recaptcha.site_key), - _SW_PUBLICKEY_: JSON.stringify(config.sw.public_key), + _SW_PUBLICKEY_: config.sw ? JSON.stringify(config.sw.public_key) : JSON.stringify(null), _THEME_COLOR_: JSON.stringify(constants.themeColor), _VERSION_: JSON.stringify(version), _STATUS_URL_: JSON.stringify(config.status_url),