feat: remove addNoReferrer

This commit is contained in:
DIYgod
2019-08-28 14:33:05 +08:00
parent 29f588e6a0
commit a34b9ae542
31 changed files with 0 additions and 79 deletions

View File

@@ -1,7 +1,6 @@
const got = require('@/utils/got');
const cheerio = require('cheerio');
const url = require('url');
const { addNoReferrer } = require('@/utils/common-utils');
const host = 'https://leetcode.com';
@@ -44,8 +43,6 @@ module.exports = async (ctx) => {
const response = await got.get(itemUrl);
const $ = cheerio.load(response.data);
addNoReferrer($, '', 'src', itemUrl);
const description =
$('#question-preview')
.html()