diff --git a/src/utilities/base-path.ts b/src/utilities/base-path.ts index ef5e7e8cb..94980c0cc 100644 --- a/src/utilities/base-path.ts +++ b/src/utilities/base-path.ts @@ -55,20 +55,20 @@ export function setKitCode(code: string) { * Gets the library's Web Awesome kit code. * * The kit code is used to fetch premium assets, so it needs to be set for certain components to work correctly. This - * isn't something we can infer, so the user will need to provide it using the `data-webawesome-kit` attribute. This can + * isn't something we can infer, so the user will need to provide it using the `data-fa-kit-code` attribute. This can * be on any element, but ideally it should exist on the script that imports Web Awesome. * - * + * * * Alternatively, you can set the kit code manually using the exported `setKitCode()` function. * */ export function getKitCode() { if (!kitCode) { - const el = document.querySelector('[data-webawesome-kit]'); + const el = document.querySelector('[data-fa-kit-code]'); if (el) { - setKitCode(el.getAttribute('data-webawesome-kit') || ''); + setKitCode(el.getAttribute('data-fa-kit-code') || ''); } }