system.js 580 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.setBaseURL = void 0;
  4. var mathjax_js_1 = require("../../mathjax.js");
  5. var root = 'file://' + __dirname.replace(/\/\/[^\/]*$/, '/');
  6. if (!mathjax_js_1.mathjax.asyncLoad && typeof System !== 'undefined' && System.import) {
  7. mathjax_js_1.mathjax.asyncLoad = function (name) {
  8. return System.import(name, root);
  9. };
  10. }
  11. function setBaseURL(URL) {
  12. root = URL;
  13. if (!root.match(/\/$/)) {
  14. root += '/';
  15. }
  16. }
  17. exports.setBaseURL = setBaseURL;
  18. //# sourceMappingURL=system.js.map