18 lines
307 B
JavaScript
18 lines
307 B
JavaScript
export const b = {
|
|
init: 'enhance',
|
|
}
|
|
|
|
export function enhance(_, __, el) {
|
|
console.log(el);
|
|
if (el.classList.contains('js-only')) {
|
|
el.classList.remove('js-only');
|
|
}
|
|
|
|
if (el.disabled) {
|
|
el.disabled = false;
|
|
if (el.title.search('JavaScript') !== -1) {
|
|
el.title = '';
|
|
}
|
|
}
|
|
}
|