Retrospring/app/javascript/retrospring/features/answerbox/index.ts

11 lines
264 B
TypeScript
Raw Normal View History

import { on } from 'retrospring/utilities/on';
import { shareEventHandler } from './share';
2021-08-10 04:16:40 -07:00
export default (): void => {
2021-08-10 06:50:17 -07:00
if ('share' in navigator) {
document.body.classList.add('cap-web-share');
2021-08-10 04:16:40 -07:00
on('click', '[name=ab-share]', shareEventHandler);
2021-08-10 06:50:17 -07:00
}
}