Skip to content

Commit

Permalink
Use Bootstrap's bundle dist file.
Browse files Browse the repository at this point in the history
Although we don't currently use any of its plugins that require popper.js, this is more correct.
  • Loading branch information
XhmikosR committed May 26, 2020
1 parent 72acbcc commit b08d3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/_partials/loadjs.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| var mainJsUri = '#{mainJsUri}';
| var clipboardjsUri = '#{clipboardjsUri}';
| var jqueryUri = '#{jquery.uri}';
| var bootstrapUri = '#{bootstrap.javascript}';
| var bootstrapUri = '#{bootstrap.javascriptBundle}';
|
| loadjs([clipboardjsUri, mainJsUri], 'main', {
| before: function(path, el) {
Expand All @@ -23,7 +23,7 @@
| });
| loadjs([jqueryUri, bootstrapUri], 'jquery', {
| before: function(path, el) {
| el.integrity = path === jqueryUri ? '#{jquery.sri}' : '#{bootstrap.javascriptSri}';
| el.integrity = path === jqueryUri ? '#{jquery.sri}' : '#{bootstrap.javascriptBundleSri}';
| el.crossOrigin = 'anonymous';
| },
| async: false
Expand Down

0 comments on commit b08d3e3

Please sign in to comment.