Skip to content

Commit

Permalink
Ensure prism loads in correct order.
Browse files Browse the repository at this point in the history
Fixes #2876.
  • Loading branch information
chrisknoll committed Aug 15, 2023
1 parent b789cd9 commit cb1a150
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion js/components/cohort-comparison-multi-r-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ define([
'appConfig',
'components/cohortcomparison/ComparativeCohortAnalysis',
'services/VocabularyProvider',
'prism',
],
function (
ko,
Expand Down
1 change: 0 additions & 1 deletion js/components/utilities/sql/sqlExportPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ define([
'atlas-state',
'services/AuthAPI',
'./sqlExportPanelConfig',
'prism',
'less!./sqlExportPanel.less',
], function (
ko,
Expand Down
7 changes: 4 additions & 3 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ const settingsObject = {
]
},
"prism": {
"prism": {
"exports": "Prism"
}
exports: "Prism"
},
"prismlanguages/prism-sql": {
deps: ["prism"]
},
"xss": {
exports: "filterXSS"
Expand Down
2 changes: 1 addition & 1 deletion js/utils/HighLightUtils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['prism','prismlanguages/prism-sql'], function () {
define(['prismlanguages/prism-sql'], function () {

function highlightJS(code, language) {
if (!code) {
Expand Down

0 comments on commit cb1a150

Please sign in to comment.