We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c390a commit af5fab9Copy full SHA for af5fab9
src/js/content.js
@@ -101,10 +101,11 @@ function loadInfo(cb) {
101
const script = document.createElement('script');
102
script.src = brw.runtime.getURL('/js/war/attach_target.js');
103
script.onload = function() {
104
- const json = document.getElementById('AESR_info').dataset.content;
105
- if (!json) return;
106
- accountInfo = JSON.parse(json);
107
- accountInfo.prism = session.prismModeEnabled;
+ try {
+ const json = document.getElementById('AESR_info').dataset.content;
+ accountInfo = JSON.parse(json);
+ accountInfo.prism = session.prismModeEnabled;
108
+ } catch {}
109
cb(accountInfo);
110
this.remove();
111
};
0 commit comments