Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Neumann committed Jun 14, 2022
1 parent ddb1ab7 commit 8292681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/LightGG/data.scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const LIGHTGG_ITEMDB_URL = 'https://www.light.gg/db/items/'
const LIGHTGG_COMMUNITY_AVG_ELEMID = 'community-average'
const LIGHTGG_MYROLLS_ELEMID = 'my-rolls'
const LIGHTGG_MAIN_ELEMID = 'main-column'
const LIGHTGG_SOCKETS_ELEMID = 'socket-container'

class LightGgDataScraper {

Expand Down Expand Up @@ -39,7 +39,7 @@ class LightGgDataScraper {
const cacheKey = `/lightgg-extra-info-${itemId}`

const fetchData = async () => {
let html = await this.#GetHtmlItemDbData({itemId, elementId: 'socket-container'})
let html = await this.#GetHtmlItemDbData({itemId, elementId: LIGHTGG_SOCKETS_ELEMID })
if(html) {
let data = LightGgDataParser.ProcessExtraInfoItemDbHtml(html)
if(data)
Expand Down

0 comments on commit 8292681

Please sign in to comment.