Skip to content

Commit 60eb1da

Browse files
authored
also fetch library from unpkg on github.com
1 parent e7f67b2 commit 60eb1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525
<script>
2626
const script = document.createElement('script')
27-
if (window.location.hostname.endsWith('github.io')) {
27+
if (window.location.hostname.endsWith('github.io') || window.location.hostname.endsWith('github.com')) {
2828
script.src = "https://unpkg.com/@github/markdown-toolbar-element@latest/dist/index.umd.js"
2929
} else {
3030
script.src = "../dist/index.umd.js"

0 commit comments

Comments
 (0)