Remove user configuration cookie (hasn't been used in 5 years). This should be reflected in a removal of the CookieConfig item from the localization files. Issue #559.
This commit is contained in:
parent
67ee149dd2
commit
997692713e
|
@ -2359,21 +2359,6 @@ MathJax.Hub.Startup = {
|
|||
MathJax.Hub.config.menuSettings.locale = this.params.locale;
|
||||
}
|
||||
//
|
||||
// Check for user cookie configuration
|
||||
//
|
||||
var user = MathJax.HTML.Cookie.Get("user");
|
||||
if (user.URL || user.Config) {
|
||||
if (confirm(
|
||||
MathJax.Localization._("CookieConfig",
|
||||
"MathJax has found a user-configuration cookie that includes code to "+
|
||||
"be run. Do you want to run it?\n\n"+
|
||||
"(You should press Cancel unless you set up the cookie yourself.)")
|
||||
)) {
|
||||
if (user.URL) {this.queue.Push(["Require",MathJax.Ajax,user.URL])}
|
||||
if (user.Config) {this.queue.Push(new Function(user.Config))}
|
||||
} else {MathJax.HTML.Cookie.Set("user",{})}
|
||||
}
|
||||
//
|
||||
// Run the config files, if any are given in the parameter list
|
||||
//
|
||||
if (this.params.config) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user