Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code copy buttons within tabsets #1957

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions assets/js/entry/html.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import '../handlebars/helpers'

import { onDocumentReady } from '../helpers'
import { initialize as initTabsets } from '../tabsets'
import { initialize as initContent } from '../content'
import { initialize as initSidebarDrawer } from '../sidebar/sidebar-drawer'
import { initialize as initSidebarContent } from '../sidebar/sidebar-list'
Expand All @@ -18,21 +19,20 @@ import { initialize as initHintsPage } from '../tooltips/hint-page'
import { initialize as initCopyButton } from '../copy-button'
import { initialize as initSettings } from '../settings'
import { initialize as initStyling } from '../styling'
import { initialize as initTabsets } from '../tabsets'
import { initialize as initPreview} from '../preview'

onDocumentReady(() => {
const params = new URLSearchParams(window.location.search)
const isPreview = params.has('preview')

initTabsets() // alters content HTML, so is run early
initTheme(params.get('theme'))
initContent(isPreview)
initMakeup()
initTooltips()
initHintsPage()
initCopyButton()
initStyling()
initTabsets()

if (isPreview) {
initPreview()
Expand Down
Loading