From a89d7379457b87fc5bf3defbe7bbef44cb2a831f Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 15 Sep 2016 09:50:21 +0900 Subject: [PATCH] Fix bug --- package.json | 2 +- src/plugins/wikipedia.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 384d7de..b97487d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "summaly", - "version": "1.1.2", + "version": "1.1.3", "description": "Get web page's summary", "author": "syuilo ", "license": "MIT", diff --git a/src/plugins/wikipedia.ts b/src/plugins/wikipedia.ts index 629cbfa..4abe0c6 100644 --- a/src/plugins/wikipedia.ts +++ b/src/plugins/wikipedia.ts @@ -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]),