summaryrefslogtreecommitdiff
path: root/webpack/module/rules
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-23 06:05:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-23 06:05:14 +0900
commit53fbe0b0e2a2ab9f052730ae0b000804fced18f5 (patch)
tree40165927dc1e8014d3e35e8a12afba502b7c7333 /webpack/module/rules
parentリアクションもServiceWorkerで通知するように (diff)
downloadsharkey-53fbe0b0e2a2ab9f052730ae0b000804fced18f5.tar.gz
sharkey-53fbe0b0e2a2ab9f052730ae0b000804fced18f5.tar.bz2
sharkey-53fbe0b0e2a2ab9f052730ae0b000804fced18f5.zip
Fix bug
Diffstat (limited to 'webpack/module/rules')
-rw-r--r--webpack/module/rules/consts.ts2
1 files changed, 1 insertions, 1 deletions
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),