Skip to content

Commit

Permalink
docs: update registration logic in localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 authored and sun-mota committed Oct 25, 2024
1 parent ac77559 commit 3dc60f7
Show file tree
Hide file tree
Showing 4 changed files with 344 additions and 4 deletions.
3 changes: 1 addition & 2 deletions demo/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
Prism.highlightAll();
});
</script>
<script type="module" data-demo-script="true" src="../index.js"></script>
<script type="module">
<script type="module" data-demo-script="true">
import { initExamples } from './api.min.js';
initExamples();
</script>
Expand Down
3 changes: 3 additions & 0 deletions demo/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { initEditCloseButtonExample } from "../apiExamples/editCloseButton";
import { initModalExample } from "../apiExamples/modal";
import { initPopoverAndDropdownExample } from "../apiExamples/popoverAndDropdown";
import { initSizeOptionsExample } from "../apiExamples/sizeOptions";
import { AuroDialog } from '../src/auro-dialog.js';

AuroDialog.register();

export function initExamples(initCount) {
initCount = initCount || 0;
Expand Down
Loading

0 comments on commit 3dc60f7

Please sign in to comment.