Skip to content

Commit 7d9db89

Browse files
committed
Merge branch 'issue821' into v2.4-beta. Issue 821.
2 parents fe68969 + 71f731c commit 7d9db89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unpacked/MathJax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,8 @@ MathJax.HTML = {
10791079
Get: function (name,obj) {
10801080
if (!obj) {obj = {}}
10811081
var pattern = new RegExp("(?:^|;\\s*)"+this.prefix+"\\."+name+"=([^;]*)(?:;|$)");
1082-
var match = pattern.exec(document.cookie);
1082+
var match;
1083+
try {match = pattern.exec(document.cookie)} catch (err) {}; // ignore errors reading cookies
10831084
if (match && match[1] !== "") {
10841085
var keys = unescape(match[1]).split('&;');
10851086
for (var i = 0, m = keys.length; i < m; i++) {

0 commit comments

Comments
 (0)