fix: route appstore/update platform detection (#2411)

This commit is contained in:
刻诺
2019-06-15 10:32:54 +08:00
committed by DIYgod
parent 8cf780158c
commit 17d90008cc
+1 -1
View File
@@ -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() {