This commit is contained in:
syuilo 2016-09-15 09:50:21 +09:00
parent c981350893
commit a89d737945
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "summaly",
"version": "1.1.2",
"version": "1.1.3",
"description": "Get web page's summary",
"author": "syuilo <i@syuilo.com>",
"license": "MIT",

View File

@ -17,7 +17,7 @@ exports.summary = async (url: URL.Url) => {
const isDesktop = !/\.m\.wikipedia\.org$/.test(url.hostname);
const text: string = isDesktop
? $('#mw-content-text > p:first-of-type').text()
: $('#bodyContent > div:first-of-type > p:first-of-type').text();
: $('#mw-content-text > div:first-of-type > p:first-of-type').text();
return {
title: decodeURI(url.pathname.split('/')[2]),