2021-12-26 14:01:16 -08:00
|
|
|
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
|
|
|
|
2021-12-26 14:01:16 -08:00
|
|
|
on('click', '[name=ab-share]', shareEventHandler);
|
2021-08-10 06:50:17 -07:00
|
|
|
}
|
|
|
|
}
|