govuk-frontend
Version:
GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
16 lines (13 loc) • 382 B
JavaScript
// @ts-nocheck
import * as GOVUKFrontend from '../govuk/govuk-frontend.min.js'
// Maintain window global for compatibility
window.GOVUKFrontend = GOVUKFrontend
if (
window.GOVUKPrototypeKit &&
window.GOVUKPrototypeKit.documentReady &&
window.GOVUKPrototypeKit.majorVersion >= 13
) {
window.GOVUKPrototypeKit.documentReady(() => {
window.GOVUKFrontend.initAll()
})
}