www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2af7fde2d9fbca07edd0cbf59bf930991f232bea
parent 9290d828584b54927bd42b29f46d0acfaf0fc53f
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Tue, 21 Apr 2015 16:44:38 -0400

Merge branch 'issue1155' into develop.  Issue #1155.

Diffstat:
Munpacked/MathJax.js | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js @@ -3117,9 +3117,10 @@ MathJax.Hub.Startup = { }}; // - // Initial browser-specific info (e.g., touch up version or name) + // Initial browser-specific info (e.g., touch up version or name, check for MathPlayer, etc.) + // Wrap in try/catch just in case of error (see issue #1155). // - HUB.Browser.Select({ + try {HUB.Browser.Select({ Safari: function (browser) { var v = parseInt((String(browser.version).split("."))[0]); if (v > 85) {browser.webkit = browser.version} @@ -3195,7 +3196,9 @@ MathJax.Hub.Startup = { } catch (err) {} } } - }); + });} catch (err) { + console.error(err.message); + } HUB.Browser.Select(MathJax.Message.browsers); if (BASE.AuthorConfig && typeof BASE.AuthorConfig.AuthorInit === "function") {BASE.AuthorConfig.AuthorInit()}