相关文章推荐
稳重的钥匙  ·  相分离·  1 年前    · 
刚失恋的芒果  ·  基于k8s ...·  1 年前    · 
不羁的高山  ·  我记得(电影)_搜狗百科·  2 年前    · 

Cannot read properties of null (reading 'getItem') #1183

@Eeems

Description

I've been getting several errors raised from what I believe is this line of code.
giscus/client.ts Line 22 cb790df

Here is the traceback (And a screenshot as the link may go stale):
https://sentry.eeems.codes/share/issue/7b711f24c519446d8ced20912a98a092/

This appears to be trigged by Chrome Mobile WebView 113.0.5672 on Android 11. My guess is that it is a webview in an app that doesn't have session storage enabled ( https://stackoverflow.com/q/69843764 ). It might be worth just validating that localStorage is not null, and handling it not being enabled in a slightly more graceful way.

I'm also fine with closing the issue if you don't want to support this use case.