Fix failing tender.
This commit is contained in:
@@ -80,7 +80,12 @@
|
||||
"URI": "js/vendor/URI.min",
|
||||
|
||||
// externally hosted files
|
||||
"tender": "//edxedge.tenderapp.com/tender_widget",
|
||||
"tender": [
|
||||
"//edxedge.tenderapp.com/tender_widget",
|
||||
// if tender fails to load, fallback on a local file
|
||||
// so that require doesn't fall over
|
||||
"js/src/tender_fallback"
|
||||
],
|
||||
"mathjax": "//edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/MathJax.js?config=TeX-MML-AM_HTMLorMML-full&delayStartupUntil=configured",
|
||||
"youtube": [
|
||||
// youtube URL does not end in ".js". We add "?noext" to the path so
|
||||
@@ -169,6 +174,9 @@
|
||||
deps: ["backbone"],
|
||||
exports: "Backbone.Paginator"
|
||||
},
|
||||
"tender": {
|
||||
exports: 'Tender'
|
||||
},
|
||||
"youtube": {
|
||||
exports: "YT"
|
||||
},
|
||||
|
||||
1
common/static/js/src/tender_fallback.js
Normal file
1
common/static/js/src/tender_fallback.js
Normal file
@@ -0,0 +1 @@
|
||||
console.error("Can't load Tender -- anything that relies on it will fail");
|
||||
Reference in New Issue
Block a user