Skip to content

Commit

Permalink
updated app to use boostrap dependency
Browse files Browse the repository at this point in the history
used the original Window interface
  • Loading branch information
Sandravaphilips committed Jul 27, 2023
1 parent d2cfc13 commit 59df6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion peachjam/js/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import peachJam from './peachjam';
import * as bootstrap from '../static/bootstrap/dist/js/bootstrap.bundle.js';
import * as bootstrap from 'bootstrap';

declare global {
interface Window {
Expand Down
2 changes: 1 addition & 1 deletion peachjam/js/components/terms-of-use.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TermsOfUse {
if (!content || !tocContainers.length) return;
const items = generateHtmlTocItems(content);
const nav: HTMLElement | null = document.getElementById('side-nav');
const offCanvas = new (window as { [key: string]: any }).bootstrap.Offcanvas(nav);
const offCanvas = new window.bootstrap.Offcanvas(nav);

tocContainers.forEach(element => {
const tableOfContents = document.createElement('la-table-of-contents');
Expand Down

0 comments on commit 59df6fe

Please sign in to comment.