From 17d90008cc176107cba5d275ba6924723bc46fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=BB=E8=AF=BA?= <32296555+KeNorizon@users.noreply.github.com> Date: Sat, 15 Jun 2019 10:32:54 +0800 Subject: [PATCH] fix: route appstore/update platform detection (#2411) --- lib/routes/appstore/update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/appstore/update.js b/lib/routes/appstore/update.js index 336c0c5665..84248846fc 100644 --- a/lib/routes/appstore/update.js +++ b/lib/routes/appstore/update.js @@ -13,7 +13,7 @@ module.exports = async (ctx) => { titleTags.find('span').remove(); const platform = $('.we-localnav__title__product').text(); - const title = `${titleTags.text().trim()} for ${platform === 'App Store' ? 'iOS' : 'macOS'} ${country === 'cn' ? '更新' : 'Update'} `; + const title = `${titleTags.text().trim()} for ${platform === 'App\u00A0Store' ? 'iOS' : 'macOS'} ${country === 'cn' ? '更新' : 'Update'} `; const item = {}; $('.whats-new').each(function() {