I have noticed the same issue described in #102 where the extension is sometimes stuck in the loading wheel phase. After some playing around, it looks like the problem happens when the getUserData fetch returns HTTP response status code 503 which sometimes happens with HackerNews if you refresh quickly or open a lot of links at once. The fetched page looks like this:
Because of the 503 page, the resulting topBarElements is empty and actualTopBar is set to undefined which leads to an Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'children') on line 90 of the utils.js file.
Steps to reproduce
Put a breakpoint on line 3080 in file refined-hacker-news.js.
I have noticed the same issue described in #102 where the extension is sometimes stuck in the loading wheel phase. After some playing around, it looks like the problem happens when the
getUserData
fetch returns HTTP response status code 503 which sometimes happens with HackerNews if you refresh quickly or open a lot of links at once. The fetched page looks like this:Because of the 503 page, the resulting
topBarElements
is empty andactualTopBar
is set toundefined
which leads to anUncaught (in promise) TypeError: Cannot read properties of undefined (reading 'children')
on line 90 of theutils.js
file.Steps to reproduce
actualTopBar
will becomeundefined
.