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 ae31979 commit 71f731cCopy full SHA for 71f731c
unpacked/MathJax.js
@@ -1079,7 +1079,8 @@ MathJax.HTML = {
1079
Get: function (name,obj) {
1080
if (!obj) {obj = {}}
1081
var pattern = new RegExp("(?:^|;\\s*)"+this.prefix+"\\."+name+"=([^;]*)(?:;|$)");
1082
- var match = pattern.exec(document.cookie);
+ var match;
1083
+ try {match = pattern.exec(document.cookie)} catch (err) {}; // ignore errors reading cookies
1084
if (match && match[1] !== "") {
1085
var keys = unescape(match[1]).split('&;');
1086
for (var i = 0, m = keys.length; i < m; i++) {
0 commit comments